Tag: docker

50 votes
3 answers
383 views
What is the runtime performance cost of a Docker container?

I'd like to comprehensively understand the run-time performance cost of a Docker container. I've fou

avatar
Yolando
0 1 0 9
asked 07 September, 2021
55 votes
6 answers
1.4K views
What is the difference between "expose" and "publish" in Docker?

I'm experimenting with Dockerfiles, and I think I understand most of the logic. However, I don't see

avatar
Joseph
0 1 0 9
asked 07 September, 2021
56 votes
18 answers
1.3K views
How do I edit a file after I shell to a Docker container?

I successfully shelled to a Docker container using: docker exec -i -t 69f1711a205e bash Now I need to edit

avatar
Corey
0 1 0 9
asked 07 September, 2021
59 votes
16 answers
1.1K views
How to include files outside of Docker's build context?

How can I include files from outside of Docker's build context using the "ADD" command in the Docker file

avatar
Rufus
0 1 0 9
asked 07 September, 2021
52 votes
11 answers
1.2K views
Run a Docker image as a container

After building a Docker image from a dockerfile, I see the image was built successfully, but what do I do with

avatar
Jeff
0 1 0 9
asked 07 September, 2021
52 votes
5 answers
2.5K views
What is the difference between docker-compose ports vs expose

What is the difference between ports and expose options in docker-compose.yml

avatar
Rufus
0 1 0 9
asked 07 September, 2021
55 votes
16 answers
2.6K views
Using Docker-Compose, how to execute multiple commands

I want to do something like this where I can run multiple commands in order. db: image: postgres web: buil

avatar
Eddie
0 1 0 9
asked 07 September, 2021
60 votes
11 answers
1.8K views
Docker how to change repository name or rename image?

I'm trying to change repository name of the image: REPOSITORY TAG IMAGE ID

avatar
Kisha
0 1 0 9
asked 07 September, 2021
51 votes
26 answers
2.6K views
How to mount a host directory in a Docker container

I am trying to mount a host directory into a Docker container so that any updates done on the host is reflecte

avatar
Roger
0 1 0 9
asked 07 September, 2021
60 votes
19 answers
787 views
How does one remove a Docker image?

I'm running Docker under Vagrant under OS X 10.8.4 (Mountain Lion), and whenever I try to delete a saved

avatar
Jefferey
0 1 0 9
asked 07 September, 2021
47 votes
27 answers
2.3K views
How to remove old and unused Docker images

When running Docker for a long time, there are a lot of images in system. How can I remove all unused Docker i

avatar
Lawanda
0 1 0 9
asked 07 September, 2021
55 votes
29 answers
2.4K views
Where are Docker images stored on the host machine?

I managed to find the containers under directory /var/lib/docker/containers, but I can't find the images.

avatar
Elicia
0 1 0 9
asked 07 September, 2021
53 votes
14 answers
2.9K views
How to list containers in Docker

avatar
Nidia
0 1 0 9
asked 07 September, 2021
56 votes
14 answers
1.3K views
How do I pass environment variables to Docker containers?

I'm new to Docker, and it's unclear how to access an external database from a container. Is the best

avatar
Louetta
0 1 0 9
asked 07 September, 2021
60 votes
15 answers
1.7K views
How to deal with persistent storage (e.g. databases) in Docker

How do people deal with persistent storage for your Docker containers? I am currently using this approach: bu

avatar
Jesenia
0 1 0 9
asked 07 September, 2021
65 votes
28 answers
1.9K views
What is the difference between a Docker image and a container?

When using Docker, we start with a base image. We boot it up, create changes and those changes are saved in la

avatar
Brianne
0 1 0 9
asked 07 September, 2021
54 votes
9 answers
2.1K views
How to force Docker for a clean build of an image

I have build a Docker image from a Docker file using the below command. $ docker build -t u12_core -f u12_cor

avatar
Santiago
0 1 0 9
asked 07 September, 2021
66 votes
30 answers
1.9K views
How to remove old Docker containers

This question is related to Should I be concerned about excess, non-running, Docker containers?. I'm won

avatar
Basil
0 1 0 9
asked 07 September, 2021
54 votes
26 answers
1.2K views
How do I get into a Docker container's shell?

I'm getting started working with Docker. I'm using the WordPress base image and docker-compose. I&a

avatar
Rudolf
0 1 0 9
asked 07 September, 2021
66 votes
30 answers
924 views
How to get a Docker container's IP address from the host

Is there a command I can run to get the container's IP address right from the host after a new container

avatar
Lawanda
0 1 0 9
asked 07 September, 2021