Questions tagged [containers]

1

votes
0

answer
8

Views

React named presentational / container parent / child components breakdown

Okay, I am trying to make a project using container / presentational components design but I am missing some kind of information or knowledege. What I am trying to do is to render a component based upon it's parent component's type: I have this route: http://localhost:3000/:componentId componentId h...
Martin Fernandez
1

votes
2

answer
156

Views

Insufficient cpu in Kubernetes multi node cluster

I am trying to deploy an application into my Kubernetes cluster. It is a multi node cluster. There are 3 m4.2xlrge aws instances. m4.2xlarge vCPU :- 8 Memory :- 32 Now, in my deployment.yaml file for that service, I have mentioned limit: cpu: 11 request: cpu: 11 It is giving error, insufficient cpu...
Dinesh Ahuja
0

votes
0

answer
45

Views

Python Container Issue referring back to main()

I am trying to read a simple text file and get the output in basic line format. I have a parent class and a child class. I start out by instantiating the child class, which should be inheriting the data structure from the parent class (that's all it contains). When parsing the input file, the child...
SadieRose
1

votes
3

answer
5.9k

Views

Resize div along with content inside according to window size

I have looked up a million techniques and I can't get this to work and I know there is other posts similar to this. I'm sorry if it bugs anyone but I need specific instructions for my code cuz me stupid. Thank you so much in advance! I want the div container contentContactBox, along with all of the...
Edge
1

votes
1

answer
109

Views

Array with fixed size at runtime

I know I can use std::array to a have an array of the type Type and a size, which is fix at compile time. Furthermore, std::vector can be used, if the size is not fixed at compile time, but given at runtime. Is there an std container, which can be set at runtime to a certain size and this size is th...
schorsch312
1

votes
2

answer
103

Views

key vs. hash in a std::unordered_map

I often need a container where an hash is associated to an arbitrary object (collisions are theoretically possible if two different objects have the same hash). In C++98 I would use template class std::map using Key as the hash computed on T: struct object; typedef std::string object_hash; object_ha...
lornova
1

votes
2

answer
43

Views

Containers with pipelines: should/can you keep your data separate from the container

I am very new to containers and I was wondering if there is a 'best practice' for the following situation: Let's say I have developed a general pipeline using multiple software tools to analyze next generation sequencing data (I work in science). I decided to make a container for this pipeline so I...
m93
1

votes
2

answer
37

Views

Sharing kernel of the host operating system while using Docker

If I deploy an image built by choosing Alpine Linux as the base image on my Ubuntu machine (which acts as the host OS - where Docker is installed), will there be two kernels at play here - one from Ubuntu and another one from Alpine? I read that Docker containers will share the host Kernel, so I'm b...
SRaj
1

votes
4

answer
3.8k

Views

Auto-incrementing C# container ID

If I have a list of objects, for example List, is it possible to have a private int key in the Cake object that will store an auto-incremented value every time I add to the list. My reason for wanting this is so that I can populate a combobox containing all the 'Cakes' in my list with a unique value...
Ash
1

votes
1

answer
403

Views

Sporadically my docker container gets 'orphaned'

My docker container builds a software product which takes more or less a couple of hours. Most times, it runs fine. However, sometimes it gets 'orphaned' towards the end of execution. By 'orphaned,' I mean: 1. 'docker ps' reports the container properly. 2. 'docker inspect' reports normally too. 3....
Munjo Yu
1

votes
1

answer
499

Views

ACS/AKS cluster with linux and windows node

Does Azure container service or Azure Kubernetes service support a cluster with linux and windows worker nodes? Thanks
Cindy Xing
1

votes
0

answer
136

Views

Access Files on Host from Privileged Container

How can I read a file on the host from within a privileged container? I can't mount any volumes as I do not control how the container is created, but I can at least request a container in privileged mode. That should be good enough to read a file on the host, right? But what would I have to do? TL;D...
vlerenc
1

votes
0

answer
33

Views

Decode properties of ByteArrayOutputStream

I'm sending asking the container to echo STDOUT ByteArrayOutputStream out = new ByteArrayOutputStream(); InputStream stdin = new ByteArrayInputStream('echo STDIN\n'.getBytes()); dockerClient.execStartCmd(container.getId()) .withExecId(execCreateCmdResponse.getId()) .withStdIn(stdin) .withTty(true)...
qweq
1

votes
1

answer
172

Views

How to expose ports of none type docker container?

I created two docker containers of which one was of network type none and the other was of type bridge. I mapped their ports with that of host port using the following command during the creation of the docker containers. docker run -p host_port:container_port image The none type coontainers were a...
Nived
1

votes
1

answer
55

Views

Docker Swarm Service Discovery in index.html

I have two express web apps (server and client) that I am using docker-compose and / or docker stack to deploy in docker swarm. They both have APIs that communicate with each other via their service names, as they are both connected to the same overlay network. A snippet of the config file that clie...
Jabari Dash
1

votes
0

answer
35

Views

Can docker and cricontainerd co exist

I have a node which has both docker and cri-containerd installed. When I do docker ps nothing gets listed where as crictl ps lists some containers. Could any one explain in detail how these commands differ. I have ctr installed as well. ctr containers list also doesn't list any containers.
ambikanair
1

votes
0

answer
303

Views

Why does Clair find many more vulnerabilities than Docker Hub does?

I've started using Clair to scan my images for vulnerabilities. I noticed though that the standard docker hub Python and Debian stretch images have much vulnerabilities in them according to clair. On docker hub these images only mention vulnerabilities in zlib. Why is there such a difference? Docker...
vdboor
1

votes
0

answer
718

Views

Docker push giving “blob upload unknown”

I am using TFS 2017 builds to push a docker image to Azure container registry. Build Machine: Ubuntu 16.04 TFS 2017 update 3 the push functionality used to be working fine, suddenly and out of nowhere it started giving an error while trying to upload the image: /usr/bin/docker login -u ******** -p *...
Johnny Zghaib
1

votes
1

answer
515

Views

Jquery popup overlay not working

I just saw the jQuery Popup Overlay demo on github, Here downloaded the file query.popupoverlay.js and added it to my project. and added this to my home page just to make sure it's working: The button: Basic The container: Basic example Try to change the width and height of browser window, or to rot...
Yura
1

votes
1

answer
2.4k

Views

Getting containers to run with a Jenkinsfile

I am having trouble with writing making Jenkinsfile. My environment: A server running docker Jenkins is running as a container on the server I have a Docker image on DockerHub, and I have no problem fetching that image. My Jenkinsfile currently looks like this: pipeline { agent { docker { imag...
emilrn
1

votes
0

answer
139

Views

Error when setting up continuous integration for Service Fabric Containers in Azure: The selected account doesn't have sufficient permissions

I am trying to get this tutorial working (Deploy a .NET application in a Windows container to Azure Service Fabric) but I am getting the error below: The selected account doesn't have sufficient permissions to access this team project. You'll need to use a different account The tutorial asks me to...
Banoona
1

votes
1

answer
74

Views

Use variables in docker-compose file image

I would like to pull and push my images to different repositories depending on the environment I am deploying them to. My .env file obviously only works in a single environment and currently i have to use multiple docker-compose files to get around this. Simply I would like to do something like th...
GERH
1

votes
0

answer
83

Views

Cross Docker Communication - Get a Jmap dump from another container

I've been working on this for a few weeks but now I'm kind of stuck. I currently have two docker containers. Both of them are running the following java version: Java(TM) SE Runtime Environment (build 1.8.0_144-b01) Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode) I'd need to be able...
Santiago Redondo
1

votes
1

answer
26

Views

Naming the outputs of a pop vs a shift operation on a sequence of elements

I'm defining a push and a shift operation in some programming-language-like project of mine (which is irrelevant to this question) - on an ordered finite sequence of elements. Their semantics will be: Shift: Remove the first element from the sequence (so the second element becomes the first, third b...
einpoklum
1

votes
0

answer
184

Views

Error Creating Multiple Containers with multiple Django projects

How to run multiple Django Projects as individual containers. docker-compose.yml web1: build: ./test1 expose: - '8000' links: - postgres:postgres volumes: - /usr/src/app - /usr/src/app/static command: python manage.py runserver 0.0.0.0:8000 web2: build: ./test2 expose: - '3000' links: - postgres:pos...
Kishan M
1

votes
1

answer
346

Views

Kubernetes init containers run every hour

I have recently set up redis via https://github.com/tarosky/k8s-redis-ha, this repo includes an init container, and I have included an extra init container in order to get passwords etc set up. I am seeing some strange (and it seems undocumented) behavior, whereby the init containers run as expected...
lodgers
1

votes
0

answer
114

Views

Windows containers volume file permission issue

I am trying to set up a PHP+Apache development environment using Docker containers on Windows 10. PS H:\> docker version Client: Version: 17.12.0-ce API version: 1.35 Go version: go1.9.2 Git commit: c97c6d6 Built: Wed Dec 27 20:05:22 2017 OS/Arch: windows/amd64 Server: Engine: V...
Jake He
1

votes
0

answer
832

Views

trouble debugging error with exit code 3221225781 (missing libraries) in windows docker container

i'm trying to run a docker container on Windows 10 which should execute a windows executable (myprogram.exe). Below you find my dockerfile: FROM microsoft/windowsservercore COPY mydir/myprogram.exe /mydir/ CMD ['/mydir/myprogram.exe','someparameter'] So i build the image with: docker image build --t...
airborne
1

votes
0

answer
402

Views

Why is container BaseOS/ CoreOS a thing?

I thought the whole point of containerization was to abstract the GuestOS to make the application more agnostic of where it runs aka more 'serverless,' and to make spinning up containers a more lightweight process. You just package up your app with what it needs and deploy them as needed for horizon...
HashRocketSyntax
1

votes
0

answer
24

Views

Common utility for different container

I am looking for a common utility in python that can be used to operate for different container types like jails, docker, lxc etc based on OS and user needs For example : when user selects docker in config and creates a container using this utility, then an instance gets created within docker envir...
Darshan
1

votes
1

answer
471

Views

selecting containers within same Pod via Services

I have two containers inside a Pod with label app=read-write. container-1 is reading on 7110 port and container-2 is listening on 7111. Now I need to connect with these containers via Services NodePorts. I create two separate services to assign NodePorts on each port (7110 and 7111). --- apiVersion:...
Anum Sheraz
1

votes
1

answer
190

Views

Openshift installation error for etcd?

Trying to install Openshift-Enterprise getting the following error during the pre-requisites check phase. TASK [Evaluate groups - Fail if no etcd hosts group is defined] ************************************************************************* fatal: [localhost]: FAILED! => {'changed': false, 'msg':...
Jeel
1

votes
1

answer
1.9k

Views

Docker + Node.js + Windows

What I want: dockerize a Node.js web app (I am on Windows), but multiple issues stand on my way. Windows container When I run docker-compose up I get this error: Service 'webapp' failed to build: no matching manifest for windows/amd64 in the manifest list entries As far as I understand I that is bec...
Emilien
1

votes
1

answer
327

Views

Filtering on labels in Docker API not working (possible bug?)

I'm using the Docker API to get info on containers in JSON format. Basically, I want to do a filter based on label values, but it is not working (just returns all containers). This filter query DOES work if you just use the command line docker, i.e.: docker ps -a -f label=owner=fred -f label=speccon...
buddyroo30
1

votes
2

answer
104

Views

Cant find a specific key in my stl container map

Hi I have been racking my head over trying to make my iterator pointer find the specified key for the map stl container. The following project is for my parser excercise where we are given a file and the point is to parse through it and read each line by line. The file is supposed to be in the proj...
Enoch Thomas
1

votes
1

answer
488

Views

Mounting a Windows Share into Kubernetes pods

We are migrating some windows components (.net 4.5) to Linux containers (.net core). Existing system is a file processor, which watches a shared location and processes file from there. We can't force existing system to start dropping file at some other location, so new containerised application has...
Ram Kinkar Pandey
1

votes
2

answer
794

Views

AKS using Kubernetes : not able to connect to cluster nodes once logged in to the cluster through azure-cli on Ubuntu

I am getting issues when trying to getting the information about the nodes created using AKS(Azure Connected Service) for Kubernetes after the execution of creating the clusters and getting the credentials. I am using the azure-cli on ubuntu linux machine. Followed the Url for creation of clusters:...
user2412341
1

votes
0

answer
228

Views

Red Hat Openshift and Spring Cloud Configuration

I am using Red Hat Openshift and Spring Cloud / Netflix OSS. I have developed the applications and can get this working locally on my machine. However, when I deploy to Openshift I cannot get the applications to register to the Eureka server. I can get Eureka running but when I deploy the Eureka...
mike gray
1

votes
0

answer
205

Views

Unix Containers on Windows 2016

I created an Azure VM Scaleset with windows 2016, signed in and enabled docker. What i dont understand is that it looks like in the middle of pulling the unix image down the docker deamon changed to not support unix. PS C:\Users\adminuser> docker info Containers: 0 Running: 0 Paused: 0 Stopped: 0 Im...
Poul K. Sørensen
1

votes
0

answer
70

Views

How can i use AWS ECS to run tests which in turn create containers for testing

I got this tutorial which explains how to use ECS to run jenkins master and slave on ECS https://tech.ticketfly.com/our-journey-to-continuous-delivery-chapter-4-run-jenkins-infrastructure-on-aws-container-service-ef37e0304b95 Its working fine but my issue is , My tests require first use docker comp...
Mirage

View additional questions