Questions tagged [docker-container]

Docker Containers are the core of the docker platform in which programs and applications can be packaged and run in simulated environments.

Docker containers are the core of the docker program in which programs and applications can run in simulated environments.

These containers serve as a way to simulate code that would otherwise cause irreversible changes to a systems hardware. The difference between this and a virtual machine is that the docker container does not run code on the same level as the virtual machine on top of the fact that it is a lot more portable.

Docker containers can be loaded with any type of environment, even your currently used machine, or serve as simple tool boxes for your file sytems.

For more info, see the official documentation of a docker container.

1187 questions
9
votes
2 answers

FTP file into docker container on remote server

How can I transfer transfer files into a Docker container running on a remote Ubuntu server using an FTP client? I can SSH into the server and use docker cp, which works fine. But I have a client who needs to be able to do so with something like…
rurp
  • 1,376
  • 2
  • 14
  • 22
9
votes
1 answer

Does docker reuse images when multiple containers run on the same host?

My understanding is that Docker creates an image layer at every stage of a dockerfile. If I have X containers running on the same machine (where X >=2) and every container has a common underlying image layer (ie. debian), will docker keep only one…
9
votes
4 answers

Windows container failed to start with error, "failed to create endpoint on network nat: HNS failed with error : Failed to create endpoint."

I have been trying Windows Containers on windows server 2016 TP5. Suddenly I started getting error while running a container with port maping option -p 80:80 c:\>docker run -it -p 80:80 microsoft/iis cmd docker: Error response from daemon: failed to…
pinkal vansia
  • 10,240
  • 5
  • 49
  • 62
8
votes
1 answer

How /var/run/docker.sock works for windows Docker?

I have Docker installed on my Windows OS. There is my volumes filed of docker-compose.yml: volumes: - "/var/run/docker.sock:/var/run/docker.sock" I just can't figure out how /var/run/docker.sock::/var/run/docker.sock path works for windows as I…
8
votes
2 answers

Nginx - Heroku Docker - Is it possible to run Nginx as a reverse proxy on Heroku

I'm trying to figure out how build a reverse proxy on an Heroku app with Nginx. The problem is that Heroku seems to accept only one container per application. But my application system would use at least three container: one for Nginx one for my…
HoCo_
  • 1,302
  • 4
  • 16
  • 33
8
votes
2 answers

Docker container doesn't start after reboot with enabling systemd script

I have the following systemd script: [Unit] Description=Hub docker container After=docker.service [Service] User=root ExecStart=/home/hub/hub.sh ExecStop=/bin/docker stop hub ExecStopPost=/bin/docker rm…
chip
  • 155
  • 1
  • 1
  • 10
8
votes
2 answers

Where is the docker container data stored on the host machine?

In docker, where is the container data, apart from the mounted volume, is stored till the container is running. So lets say /usr/local is volume mounted, so it would be shared between the host and the container. Where is everything else stored?
Nagri
  • 3,008
  • 5
  • 34
  • 63
8
votes
1 answer

What does Docker run --storage-opt size=XYZ means?

Docker run cli command has an option --storage-opt used like this: docker run --storage-opt size=XYZ ....nginx Does the "XYZ" size specified above refer to the CoW layer or the total size of base image and CoW layer as discussed in this link ?
ben
  • 81
  • 1
  • 1
  • 3
8
votes
2 answers

Connect with filezilla to docker container

I am running docker containers on Google Cloud virtual machine. I am trying for hours to connect from filezilla on my local computer to an running docker container. I have started docker image like this: docker run -t -d --name test -p 2222:22…
8
votes
5 answers

File not found in docker container

I'm doing something extremely simple. Here is my Dockerfile: FROM alpine:latest ADD hello.sh /bin/hello RUN chmod +x /bin/hello CMD /bin/hello Then I build the image: docker build -t hello . Then I run the image: docker run hello And here is…
Derek Chiang
  • 3,330
  • 6
  • 27
  • 34
7
votes
1 answer

Are the container in a kubernetes pod part of same cgroup?

In a multi-container Kubernetes pod, are the containers part of the same cgroup (along with pod) or a separate cgroup is created for each container.
samshers
  • 1
  • 6
  • 37
  • 84
7
votes
1 answer

How does port publishing from a docker container to a kubernetes pod work?

While working through the tutorial Get Started, Part 3: Deploying to Kubernetes I stumbled over the Pod template within the deployment definition of the manifest file. There are no ports specified, neither in the pod nor in the container…
Chris
  • 2,071
  • 4
  • 14
  • 22
7
votes
1 answer

Docker alternative to --network host on macOS and Windows

I have two docker containers: database app that consumes the database I run my database container like this: docker run --name my-db -p 127.0.0.1:3306:3306 my-db-image And my app container like this: docker run --name my-app --network host -it…
7
votes
3 answers

Docker error - cannot remove a container

I haven't upgraded Docker recently. I used to be able to remove containers without error. All the time now I get: docker rm -f 05344fa394a4 Error response from daemon: driver "overlay" failed to remove root filesystem for…
JoeG
  • 7,191
  • 10
  • 60
  • 105
7
votes
4 answers

AWS Fargate Task Debugging, what does "CannotPullContainerError ... invalid reference format" mean?

I have docker container stored on AWS ECR, using this container I have created Task . When I run Task over Fargate , the service moves from PROVISIONING > PENDING (red color) > STOPPED states . There is no log either in Service Event , or CloudWatch…