Questions tagged [containers]

Use for generic questions on containers that do not fall under a specific container technology, like Docker, LXC, FreeBSD Jails, OpenBSD sysjails, Solaris Containers, WPARs, etc. Also use where the specific technology is not relevant to the question.

Filter by
Sorted by
Tagged with
2
votes
1answer
63 views

How not expose my backend

I'm studying Docker and how to properly publish my containers coding a very simple web application. It has only two containers, backend and frontend. I've published the source code here: https://...
1
vote
1answer
16 views

Linking nodes in a cluster to run a single instance of a docker container

In this cluster, there are 11 identical nodes, each with 16gb of memory. So far, I've been able to connect each node of the cluster to a docker swarm hosted on the control node. My end goal is to run ...
3
votes
1answer
37 views

Porting a docker container to a different Linux host OS

I'm new to Docker. I have looked at many tutorials, however, this is still not clear to me : For example, If I create a docker image on a system which is using Ubuntu as the host OS. Can I then later ...
4
votes
2answers
128 views

Stress testing for docker container

I want my container to die under high pressure to check monitoring and alerting as well as compose autorestarts. What is best way to simulate heavy load within docker container. I've tried so far ...
0
votes
0answers
1 view

How to use custom apparmor profile for container with dockerode api using Nodejs

I was wondering how I can use apprmor profile for docker containers using dockerode (docker api) under Nodejs Visit this project I found something called "SecurityOpt": [ ], In official ...
0
votes
0answers
23 views

Docker fails to mount files inside volume from local WSL

Trying to run docker locally inside Visual Code WSL terminal on Windows Pro - using Docker ( version 19.03.8 ) for Windows. It seems to be mounting the folders correctly but the folder is empty in the ...
0
votes
0answers
8 views

How to issue and automatically renew let's encrypt certificate in other container

In a testing environment, I would like to make container like certbot issue and automatically renew a certificate in other containers from dockerhub which includes nginx. each with a different PHP ...
1
vote
0answers
42 views

Can't install Docker Engine On Windows Server 2019 in an Air Gapped network

The organization I work for has a tightly air-gapped network. I need to be able to run my applications in docker containers, so I need to install Docker Engine on Windows Server 2019. I have followed ...
1
vote
3answers
69 views

Can I run a Ubuntu 16 Docker image on a Ubuntu 18 host? Will I need to install hardware drivers already available to the host?

We have some Docker images built from Ubuntu 16.04 base image, and we've been running them on hosts running Ubuntu 16.04; these hosts are laptop computers from different makes. However, we have had ...
0
votes
1answer
17 views

Should my zombie backend container be restarted when database is down?

I have a situation where I have a Postgres and a Node server which connects to it. I am using Kubernetes to deploy them. If my Postgres container fails and stops working then its livenessProbe will ...
1
vote
0answers
23 views

How to get parent Docker container ID in docker-in-docker-context?

While running a Docker container inside another Docker container, how to get parent container's ID?
0
votes
1answer
50 views

What is the difference between a jail environment in linux and docker container?

I am curious about difference between a jail environment in linux and Docker. What separates these two technologies?
1
vote
1answer
19 views

Auto-managed docker-compose volume not shared among containers

I have a bit of hard time understanding the way docker-compose handles auto-managed volumes. Here is an example docker-compose.yml version: '3.7' services: one: image: alpine command: sh -c ...
1
vote
4answers
94 views

Why will my container run in Docker, but will not run in Kubernetes?

Background I have a container that I have defined with an CMD and an ENTRYPOINT in Docker. When I run the following command my container runs with no issues whatsoever. docker run --rm -ti custom-...
0
votes
1answer
29 views

How to pass parameters to a container orchestrated by Kubernetes similar to running the container at the command line using the docker run command?

Background I have a docker container that I run in the following fashion: docker run --rm my-custom-container:latest --username me --password yes --url "https://my.url" The container does what ...
0
votes
1answer
555 views

Can't make MySQL 5.7 work with Docker Compose, no matter what

I'm configuring a docker compose file, and the first step is to configure the MySQL service (so I can further use in my app service), but no matter what, I cannot enter MySQL within the container, ...
1
vote
2answers
1k views

docker | database connection refused between two containers

I have a mysql database running with the following docker-compose.yml: version: '3.3' services: db: image: mysql:5.7 restart: always environment: ...
0
votes
1answer
48 views

Azure Windows Container: How to read secrets from an azure vault

I am coming from AWS / Linux and try this in Azure / Windows, now. The Question: I have a windows container in Azure and want it to get some secrets from an Azure Vault. How can I do that? This is ...
1
vote
1answer
28 views

How to develop a docker container for laravel without laradock or docker-compose

I am very new to docker. I want to build a laravel development environment with docker. I already tried laradock but it seemed complicated for me. I was wondering whether it is possible to create a ...
4
votes
3answers
924 views

ERROR: Unable to read database state: No such file or directory

I was trying to install Photon by pulling the docker image. But when I run docker build -t photon . I am getting the below error. ---> Running in 3076fb42ef8b ERROR: Unable to read database state:...
0
votes
2answers
28 views

Configure Kubernetes with docker container on Ubuntu VM

I am using the YAML file to deploy the container on Kubernetes with some replication factor on a hosted machine. YAML File apiVersion: apps/v1 kind: Deployment metadata: name: mojo-deployment ...
2
votes
3answers
76 views

How to get the next friendly name that Docker will assign to the container it will make?

Background When you start a Docker container as in the following example: $ docker run -ti ubuntu:latest Docker docker automatically assigns the container an ID and a friendly name. Docker ...
2
votes
1answer
58 views

What's the relationship between ContainerD and Docker?

I'm aware that Kubernetes uses containerd internally and that containerd is part of Docker. Does that mean that Kubernetes only uses certain parts of Docker to provide orchestration of containers? ...
1
vote
1answer
32 views

Are there examples of other production grade container runtimes?

While we say "Docker is just one possible container runtime", are there other implementations used in production environments as of late 2019, and do they have different approaches? (while Docker ...
4
votes
1answer
364 views

What are the best practices for anti-virus / anti-malware when using containers?

One of the SOC 2 controls is apparently around ensuring antivirus/anti-spam/anti-malware is running on production servers. I've been googling to see if there are any recommendation/best practices for ...
3
votes
3answers
369 views

Does every docker container has a a OS?

Does every container have an OS? For example, the base docker python image has a default OS in it? I couldn't find any info on Google. I am in doubt because there are some images made with Python ...
2
votes
1answer
42 views

Container for every user

Please help me here based on your experiences. We have launched a desktop application where users can download all their online data from several platforms at one place. Our motto is to provide users ...
1
vote
1answer
799 views

Docker container stuck in “new” state - Docker swarm - service stack

I am deploying a service stack to a Docker swarm like so: $ dt stack deploy --with-registry-auth -c tmp.stack.docker-compose.yml tmp Creating network tmp_my-network Creating service tmp_my-service $ ...
1
vote
1answer
737 views

jenkins stuck “Please wait while Jenkins is getting ready to work”

I've been trying to get a simple jenkins master node to start but it keeps getting stuck at the "Please wait while Jenkins is getting ready to work". My setup is nothing exotic: jenkins is installed ...
1
vote
1answer
62 views

Container runtime Vs orchestrator

The terms container runtime and orchestrator always confuse me. Can someone please put these in simple terms? Thanks
0
votes
1answer
59 views

What is the performance different running docker on Windows versus Linux?

We are looking at containerizing some of our applications and servers, Redhat servers to be more specific and there is an idea to run Docker on windows instead of Linux so the end user has an easier ...
2
votes
1answer
540 views

Accessing TPM from inside a Docker Container

I want to implement Vault as part of the DevOps build pipeline to store all the secrets like passwords and certificates. I understand that Vault keeps the data encrypted but I have been asked me to ...
0
votes
1answer
194 views

How to get into an App Container Manually with Garden-RunC Backend?

So I have been trying this-tutorial to access the runC container from the diego-cell VM. However, when I try to run /var/vcap/packages/runc/bin/runc exec -t <instance_id> /bin/bash I get the ...
1
vote
2answers
142 views

Why is docker container recreated

I'm testing Wordpress docker on an Amazon EC2 machine. yesterday, all file based changes (like plugins, themes, etc) were gone. The Ec2 machine is up for 8 days, other containers are also up for 8 ...
0
votes
1answer
33 views

How to scale the control plane of a service mesh?

Scalability in the data plane is easy to achieve by simply having more replicas. The configuration the proxies receive from the control plane makes that possible . However, if the number of services (...
6
votes
1answer
66 views

How do you monitor and alert on thrashing containers?

Are there any proposed best practices for how to monitor for thrashing containers? We're in a situation where we have containers that might try to come up and will crash -> restart a few dozen times ...
3
votes
2answers
121 views

What are Deis Workflow Alternatives?

We're looking to build an internal Heroku-like PaaS that supports clustering and a DFS. We found Deis Workflow that seems to do exactly what we're looking for, but the project has since been ...
1
vote
2answers
4k views

helm - cannot get resource “namespaces” in API group

I installed Kubernetes, helm on the Ubuntu 16.04.6 Box, I want to deploy kubernetes-dashboard using helm but getting below error while installing it $ helm install stable/kubernetes-dashboard --name ...
0
votes
1answer
36 views

How do I create a Docker container which just waits to be shelled into?

I'm testing a Docker container for development. And at the moment I just want to provision it with some libraries. After which I want to connect to it and test that I have all the libraries I need. ...
1
vote
1answer
745 views

What is the difference between dockerd and com.docker.service in Docker for Windows?

What is the difference between dockerd and com.docker.service in Docker for Windows? Or rather I should ask: why do I need (if I need) com.docker.service running? Intention: I want to use Docker only ...
2
votes
2answers
27 views

How can I test native macOS UI software in a container before deployment?

As part of the CI setup, I'd like to run (automated) tests on native macOS GUI software in a 'safe environment' (i.e. without messing with the host software installation too much). Virtual machines (...
0
votes
2answers
724 views

What is the cheapest way to get CI for a Qt project?

To build up my portfolio I'm writing an application to showcase all the best practices I'm aware of, including unit tests and continuous integration. The project was originally started in C++, and I ...
4
votes
1answer
364 views

Process auditing in containers

I've read numerous articles on this going back to 2013, but what I wasn't able to ascertain is whether a reliable method has yet been devised for auditing processes inside a container. This question ...
1
vote
3answers
532 views

How to stop a container dying at the end of an execution?

I'm running git-all-secrets over our organisation to ensure we have nothing exposed. I'm doing this using: sudo docker run --rm -it abhartiya/tools_gitallsecrets -org <org> -output /root/output....
0
votes
1answer
350 views

How to build windows image on azure dev ops hosted agent

The host agent pool on azure-devops to build windows container, Hosted Windows Container is running Windows Server version 1803. But I want to deploy on Windows Server 2019, so instead of using ...
0
votes
1answer
25 views

Is “running several Linux distributions on the same host” a good justification for container adoption?

I need to justify container adoption. I have several solid arguments, but one is making me dubious. Is it correct to say software can "run better" or "worst" depending on the Linux distribution? Here ...
6
votes
0answers
44 views

Blackbox testing vs openbox testing applications in a containerized environment [closed]

We use containers to deploy our Node.js applications. But currently, the development and a good share of testing is done by the developers on their own host system and thus using different versions of ...
0
votes
2answers
51 views

Is there a good standard to follow when choosing a service mesh for your microservice application?

The industry appears to have chosen the de facto standards for containers (docker) and orchestration (kubernetes) but this doesn't appear to be the case for the options for implementing a service mesh....
5
votes
2answers
227 views

If we are using containers do we still need to worry about configuration management at an infrastructure level?

We are about to begin our journey with containers and I am wondering if we still need to utilize something like Chef, Ansible, Terraform, etc. to ensure that our infrastructure is properly maintained? ...
1
vote
0answers
42 views

How to automate a work-flow in the cloud? [closed]

I'm currently trying to scale a crawler in the cloud. I'm wondering what would be the best way to automate the work-flow, considering the following conditions: - Guaranteed bandwidth, CPU and memory ...