Tag: c

65 votes
19 answers
1.9K views
Docker - Name is already in use by container

Running the docker registry with below command always throws an error: dev:tmp me$ docker run \ -d --nam

avatar
Elicia
0 1 0 9
asked 07 September, 2021
51 votes
17 answers
2.2K views
Docker: How to delete all local Docker images

I recently started using Docker and never realized that I should use docker-compose down instead of ctrl-c or

avatar
Adolfo
0 1 0 9
asked 07 September, 2021
63 votes
19 answers
1.1K views
How do I run a command on an already existing Docker container?

I created a container with -d so it's not interactive. docker run -d shykes/pybuilder bin/bash I see t

avatar
Bryan
0 1 0 9
asked 07 September, 2021
61 votes
30 answers
2.7K views
Docker can't connect to docker daemon

After I update my Docker version to 0.8.0, I get an error message while entering sudo docker version: Client

avatar
Basil
0 1 0 9
asked 07 September, 2021
44 votes
30 answers
3.1K views
denied: requested access to the resource is denied : docker

I am following this link to create my first docker Image and it went successfully and now I am trying to push

avatar
Dwain
0 1 0 9
asked 07 September, 2021
63 votes
5 answers
387 views
How can I expose more than 1 port with Docker?

So I have 3 ports that should be exposed to the machine's interface. Is it possible to do this with a Doc

avatar
Lashawna
0 1 0 9
asked 07 September, 2021
63 votes
15 answers
3.1K views
How do I assign a port mapping to an existing Docker container?

I'm not sure if I've misunderstood something here, but it seems like it's only possible to set

avatar
Sachiko
0 1 0 9
asked 07 September, 2021
66 votes
13 answers
892 views
How to upgrade docker container after its image changed

Let's say I have pulled the official mysql:5.6.21 image. I have deployed this image by creating several

avatar
Luis
0 1 0 9
asked 07 September, 2021
58 votes
11 answers
1.9K views
How to enter in a Docker container already running with a new TTY

I have a container that is running the Apache service in the foreground. I would like to be able to access the

avatar
Omar
0 1 0 9
asked 07 September, 2021
54 votes
28 answers
2.4K views
How to fix docker: Got permission denied issue

I installed Docker in my machine where I have Ubuntu OS. When I run: sudo docker run hello-world All is ok, b

avatar
Vi
0 1 0 9
asked 07 September, 2021
57 votes
13 answers
1.3K views
Error "The input device is not a TTY"

I am running the following command from my Jenkinsfile. However, I get the error "The input device is not a TT

avatar
Lynette
0 1 0 9
asked 07 September, 2021
50 votes
3 answers
385 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