Docker

Docker provides a high-level API to containerize processes and applications with some degree of isolation and repeatability across servers. Docker supports both Linux and Windows containers.

52 votes
16 answers
1.6K views
How to access host port from docker container

I have a docker container running jenkins. As part of the build process, I need to access a web server that is

avatar
Brianne
0 1 0 9
asked 07 September, 2021
57 votes
3 answers
807 views
Copy directory to another directory using ADD command

I have read http://docs.docker.com/engine/reference/builder/#add however I met a problem. I want to copy the l

avatar
Scot
0 1 0 9
asked 07 September, 2021
59 votes
9 answers
407 views
How to see docker image contents

I did a docker pull and can list the image that's downloaded. I want to see the contents of this image. D

avatar
Patsy
0 1 0 9
asked 07 September, 2021
53 votes
11 answers
1.2K views
How to push a docker image to a private repository

I have a docker image tagged as me/my-image, and I have a private repo on the dockerhub named me-private. When

avatar
Lorenzo
0 1 0 9
asked 07 September, 2021
48 votes
29 answers
1.2K views
Docker error : no space left on device

I installed docker on a Debian 7 machine in the following way $ echo deb http://get.docker.io/ubuntu docker

avatar
Chaya
0 1 0 9
asked 07 September, 2021
57 votes
7 answers
2.2K views
How do I make a comment in a Dockerfile?

I am writing a Dockerfile. Is there a way to make comments in this file? Does Docker have a comment option th

avatar
Jefferey
0 1 0 9
asked 07 September, 2021
59 votes
16 answers
2.1K views
How do you attach and detach from Docker's process?

I can attach to a docker process but Ctrl+c doesn't work to detach from it. exit basically halts the proc

avatar
Suzan
0 1 0 9
asked 07 September, 2021
58 votes
4 answers
3.1K views
In a Dockerfile, How to update PATH environment variable?

I have a dockerfile that download and builds GTK from source, but the following line is not updating my image&

avatar
Royal
0 1 0 9
asked 07 September, 2021
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
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
390 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
895 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
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