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
25
votes
3 answers

Can you explain Docker with a practical example/case?

I have read this and the intro docs on Docker.io and I like the concept it presents. But, can you help me understand it a little better? Can you give me some practical examples and/or case studies on how Docker is used and when it makes sense to…
Ion
  • 1,033
  • 2
  • 13
  • 18
24
votes
5 answers

How to execute command from one docker container to another

I'm creating an application that will allow users to upload video files that will then be put through some processing. I have two containers. Nginx container that serves the website where users can upload their video files. Video processing…
24
votes
6 answers

How to check what OS a docker image depends on?

I want to extend my jenkins image to have docker installed so it can build a Dockerfile out of a project. I found a nice install script for docker but only for Ubuntu 64bit. What I need to know is if the parent images of my jenkins image base on…
xetra11
  • 7,671
  • 14
  • 84
  • 159
23
votes
4 answers

How to find all image tags of a running Docker container?

I have a bunch of Docker containers running on a server and I used the "latest" tag or no tag at all for all of them. Now I want to freeze the image versions, but I have no idea when I pulled these images, so I can't tell which version "latest" is…
Forivin
  • 14,780
  • 27
  • 106
  • 199
23
votes
2 answers

How to duplicate running docker container

I have a docker container running > docker container ls CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS …
Mahabub
  • 511
  • 2
  • 6
  • 16
23
votes
3 answers

Huge files in Docker containers

I need to create a Docker image (and consequently containers from that image) that use large files (containing genomic data, thus reaching ~10GB in size). How am I supposed to optimize their usage? Am I supposed to include them in the container…
Eleanore
  • 1,750
  • 3
  • 16
  • 33
21
votes
1 answer

Commit content of mounted volumes as well

I have a jenkins container running and would like to have it's configuration isolated in a container commit. Only problem is that there docker won't commit changes of mounted volumes - so I have to unmount them. Is there a way to let docker mount…
xetra11
  • 7,671
  • 14
  • 84
  • 159
21
votes
3 answers

Wordpress on Docker: Could not create directory on mounted volume

Here is are the original files in the Wordpress Docker container on path /var/www/html: $ docker exec 5b957c7b9c5ad054883694afbfb80d3c9df6707458d55011f471be0701f3890c ls -l total 192 -rw-r--r-- 1 www-data www-data 418 Sep 25 2013…
Peter G.
  • 7,816
  • 20
  • 80
  • 154
20
votes
4 answers

docker is exited immediately when runs with error code 139

I have a web api project with running fine when i ran through visual studio, able to build the image also. but when i run using the command docker run -d -t -p 8000:83 8fbf296e2173 shows no error and the container will be listed in docker ps -a…
arunraj770
  • 767
  • 1
  • 10
  • 29
20
votes
4 answers

docker swarm - how to balance already running containers in a swarm cluster?

I have docker swarm cluster with 2 nodes on AWS. I stopped the both instances and initially started swarm manager and then worker. Before stopped the instances i had a service running with 4 replicas distributed among manager and worker. When i…
20
votes
2 answers

Docker container with entrypoint variable expansion and CMD parameters

I want to create a Docker Image that acts as an executable for which the user passes a token as an environment variable. The executable has sub commands that the user should pass via dockers CMD (think of git with authentication via Env). However,…
feob
  • 1,930
  • 5
  • 19
  • 31
20
votes
2 answers

Restart Docker Containers when they Crash Automatically

I want to restart a container if it crashes automatically. I am not sure how to go about doing this. I have a script docker-compose-deps.yml that has elasticsearch, redis, nats, and mongo. I run this in the terminal to set this up: docker-compose…
daveskylark
  • 2,724
  • 4
  • 16
  • 30
19
votes
7 answers

failed to solve with frontend dockerfile.v0: failed to read dockerfile?

I am new to Docker and i am trying to create an image from my application, i created Dockerfile in the same directory with package.json file with no extension, just Dockerfile Now in Dockerfile: FROM node:14.16.0 CMD ["/bin/bash"] and i am trying…
Saher Elgendy
  • 1,519
  • 4
  • 16
  • 27
19
votes
3 answers

Docker Commit on a existing image

docker commit creates a new image every time the commit command is issued. Is it possible to issue commit on currently running container and the changes get saved to the existing image? (existing image here is the image from which the container was…
vijaygopal
  • 333
  • 2
  • 4
  • 8
18
votes
2 answers

docker view directory within container

I'm trying to copy some files from my docker container to my localhost, I read the documentation that the way to do this is docker cp 'container':path/to/file dest/path But this requires I know the path and directory within the container that I…
Meir Snyder
  • 789
  • 1
  • 6
  • 16
1 2
3
79 80