Most voted questions in Docker

+15 votes
19 answers

How can I run a ‘docker exec’ command inside a docker container?

you can run any command in a ...READ MORE

Dec 10, 2018 in Docker by Pramiti
1,229,159 views
+6 votes
1 answer

DevOps in Government

I think it would be a great ...READ MORE

Sep 24, 2018 in Docker by Hannah
• 18,540 points
574 views
+6 votes
3 answers

Difference between image and container - Containerization cencepts

Entire concept of docker and Kubernetes is ...READ MORE

Sep 12, 2018 in Docker by Kalgi
• 52,360 points
1,189 views
+6 votes
4 answers

Error: Docker saying "bad file descriptor"

The solution was easy enough. Add these ...READ MORE

Mar 27, 2018 in Docker by DragonLord999
• 8,450 points
7,656 views
+5 votes
7 answers

Docker swarm vs kubernetes

Swarm is easy handling while kn8 is ...READ MORE

Aug 27, 2018 in Docker by Mahesh Ajmeria
3,796 views
+5 votes
3 answers

Copying files from host to Docker container

Hi, You can use the docker cp command ...READ MORE

Dec 9, 2020 in Docker by MD
• 95,460 points
349,608 views
+4 votes
4 answers

How to install packages inside a docker Ubuntu image?

Execute the update and the install command ...READ MORE

Apr 24, 2019 in Docker by Vismaya
46,810 views
+4 votes
7 answers

If conditional in docker file

First of all, create a build_internal.sh file ...READ MORE

May 29, 2018 in Docker by DareDev
• 6,890 points
122,997 views
+4 votes
4 answers

How To Access a Service on Host From a Docker Container?

Adding to kalgi's answer, You can also ...READ MORE

Oct 16, 2018 in Docker by lina
• 8,220 points

edited Oct 16, 2018 by lina 33,989 views
+3 votes
1 answer

Docker swarm, not service not deploying to other nodes

Hi @Karenh. Try removing all the old images ...READ MORE

Jan 31, 2020 in Docker by Aisha
2,298 views
+3 votes
4 answers

How do I execute multiple commands using docker-compose

It can be solve by using bash -c ...READ MORE

Sep 20, 2018 in Docker by shubham
• 7,340 points
110,753 views
+3 votes
4 answers

Not able to connect worker nodes to the swarm. Connection refused error

This definitely has to be a firewall issue. ...READ MORE

Apr 26, 2019 in Docker by Vaidya
18,671 views
+3 votes
12 answers

How to run multiple commands in docker at once?

In order to run multiple commands in ...READ MORE

Jul 19, 2018 in Docker by Sophie may
• 10,620 points
249,945 views
+2 votes
1 answer

Error response from daemon: This node is already part of a swarm. Use "docker swarm leave" to leave this swarm and join another one.

Hi@akhtar, It is showing in the error that you ...READ MORE

Dec 24, 2020 in Docker by MD
• 95,460 points
7,587 views
+2 votes
2 answers

COPY failed: stat /var/lib/docker/tmp/docker-builder/root/page: no such file or directory

I have faced the same error in ...READ MORE

Dec 3, 2020 in Docker by Tabish Ali
23,505 views
+2 votes
1 answer

How to plot graph inside docker container?

Hi@akhtar, To plot a graph we generally use ...READ MORE

May 19, 2020 in Docker by MD
• 95,460 points
6,561 views
+2 votes
1 answer
+2 votes
0 answers

trying to create a service to multiple nodes and getting "no such image"

How come this has come up as ...READ MORE

Feb 2, 2020 in Docker by Karenh
• 200 points
2,443 views
+2 votes
1 answer

Docker ulimit and ServerName errors

I have resolved the issue.  The resolution ...READ MORE

Jan 29, 2020 in Docker by Charles
• 230 points
3,875 views
+2 votes
1 answer

How to link one running container with other running container in docker.

Hi @Yuvraj! Yes, this is possible. You can ...READ MORE

Dec 16, 2019 in Docker by Kalgi
• 52,360 points
2,130 views
+2 votes
1 answer

How to Create absolute path

The absolute path of your resources refers ...READ MORE

Dec 3, 2019 in Docker by Karan
• 19,610 points
6,515 views
+2 votes
1 answer

Not able to create docker robot framework image

Did your try FROM Python3 READ MORE

Aug 21, 2020 in Docker by anonymous
2,137 views
+2 votes
1 answer

getting error "Error response from daemon: OCI runtime create failed"

FROM: ubuntu:latest MAINTAINER rajendrachowdary40@gmail.com RUN apt-get update RUN apt-get install ...READ MORE

Aug 17, 2019 in Docker by Rajendra
• 510 points
6,324 views
+2 votes
2 answers

Running httpd in container as non-root user using port 80

You could probably try adding this cmd in ...READ MORE

Aug 9, 2019 in Docker by Sirajul
• 59,230 points
5,813 views
+2 votes
1 answer

Cannot connect to docker swarm service task

The id that command docker service ps <service> gives ...READ MORE

Sep 26, 2018 in Docker by Kalgi
• 52,360 points
1,566 views
+2 votes
1 answer

Nodes not able to join docker swarm cluster

You need to provide more information like ...READ MORE

Sep 26, 2018 in Docker by Kalgi
• 52,360 points
1,844 views
+2 votes
1 answer

Creating docker swarm using ansible

hello @hannah, You need to use the ...READ MORE

Sep 26, 2018 in Docker by Kalgi
• 52,360 points
2,479 views
+2 votes
5 answers

Where are Docker images stored on the host machine?

The contents of the /var/lib/docker directory vary ...READ MORE

Jul 18, 2018 in Docker by Kalgi
• 2,680 points
12,269 views
+2 votes
6 answers

copy directories in docker container excluding any one directory

One of the way could be copy ...READ MORE

Dec 10, 2018 in Docker by Prateek
34,535 views
+1 vote
0 answers

How to keep Docker container running after starting services?

Although I've read many instructions that appear ...READ MORE

Dec 13, 2022 in Docker by Edureka
• 13,620 points
986 views
+1 vote
0 answers

What does COMMAND in 'docker ps' mean?

docker ps or docker container ls displays ...READ MORE

Apr 20, 2022 in Docker by pranav
• 2,590 points
1,061 views
+1 vote
0 answers

unable to build docker-compose.yml file

I am trying to create container with ...READ MORE

Feb 8, 2021 in Docker by Amit
• 130 points
1,454 views
+1 vote
1 answer

How to add or remove label metadata in the swarm node?

Node labels provide a flexible method of ...READ MORE

Dec 28, 2020 in Docker by MD
• 95,460 points
3,879 views
+1 vote
1 answer

Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

Hi@akhtar, It seems the docker service is not ...READ MORE

Dec 24, 2020 in Docker by MD
• 95,460 points
15,444 views
+1 vote
1 answer

How to mount a host directory in a Docker container?

Hi@akhtar, You can use the -v option in ...READ MORE

Dec 23, 2020 in Docker by MD
• 95,460 points
2,317 views
+1 vote
1 answer

How to write ansible play book to install docker and start docker container with docker image on multiple host machines

Hi@Shashi, You can do this task easily with ...READ MORE

Oct 22, 2020 in Docker by MD
• 95,460 points
6,603 views
+1 vote
1 answer

Slow Docker Pull

Hi@Allahshukar, As you said your docker clients are ...READ MORE

Oct 7, 2020 in Docker by MD
• 95,460 points
4,060 views
+1 vote
1 answer

Error: error response from daemon get https //registry-1.docker.io/v2/ connection refused

Hi@akhtar, Sometimes it happens. I also faced this ...READ MORE

Aug 27, 2020 in Docker by MD
• 95,460 points

reshown Nov 22, 2023 by Soumya 224,917 views
+1 vote
1 answer

How to rename Docker images without rebuilding it?

Hi@akhtar, You can rename your docker image by ...READ MORE

May 19, 2020 in Docker by MD
• 95,460 points
41,885 views
+1 vote
1 answer

How to run jenkins service inside docker container?

Hi@akhtar, By default systemctl command will not run ...READ MORE

May 12, 2020 in Docker by MD
• 95,460 points
5,727 views
+1 vote
1 answer

How to change the default IP address of docker bridge adapter?

Hi@akhtar, You can reconfigure the default bridge network ...READ MORE

May 11, 2020 in Docker by MD
• 95,460 points
6,806 views
+1 vote
1 answer

How to install packages in a Docker container?

Hi@akhtar, To install packages in a docker container, ...READ MORE

Apr 15, 2020 in Docker by MD
• 95,460 points
146,319 views
+1 vote
0 answers

How can I map a docker location to my Jenkins workspace so that I can use the files in my Jenkins

Hey guys, I was trying to execute few ...READ MORE

Feb 25, 2020 in Docker by dineshkumar
• 130 points
4,889 views
+1 vote
1 answer

Docker-compose up throwing error

the issue is with space formatting of ...READ MORE

Feb 29, 2020 in Docker by anonymous
7,661 views
+1 vote
1 answer

Remove volume attached to a docker container

If the volume is being referenced by ...READ MORE

Nov 25, 2019 in Docker by Aria
1,427 views
+1 vote
1 answer

Devops certification project: Dockerfile and PHP website

Try using relative paths. Recently, even I ...READ MORE

Nov 14, 2019 in Docker by Eric
3,193 views
+1 vote
1 answer

what is the difference between docker swarm and kubernetes

Both Kubernetes and Docker Swarm are important ...READ MORE

Sep 24, 2019 in Docker by Sirajul
• 59,230 points
2,266 views
+1 vote
0 answers

Kitematic is taking longer time

Hi All, Kitematic UI is taking longer time ...READ MORE

Sep 6, 2019 in Docker by Manjunathan
• 130 points
1,433 views
+1 vote
1 answer

How do i install jenkins using a dockerfile on a windows container?

Here is to how you can install JENKINS ...READ MORE

Aug 22, 2019 in Docker by Sirajul
• 59,230 points
6,162 views
+1 vote
0 answers

Not able to access the nginx container from IE or Chrome but from host service I can do curl http://localhost:port number

Not able to access the nginx container ...READ MORE

Aug 13, 2019 in Docker by anonymous
1,944 views