Trending questions in Docker

+7 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
767,837 views
+3 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,240 points
256,218 views
+2 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,550 points
143,842 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,320 points
74,427 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
72,648 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,240 points
37,490 views
0 votes
7 answers

docker: executable file not found in $PATH

try to build the image with --no-cache. I ...READ MORE

Nov 1, 2020 in Docker by Deeptesh Agrawal
41,092 views
+1 vote
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
17,521 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,240 points
20,094 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,240 points
5,661 views
0 votes
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,240 points
10,111 views
0 votes
1 answer

Error starting daemon: pid file found, ensure docker is not running or delete /var/snap/docker/179/run/docker.pid

Hi@akhtar, It means the previous PID file of ...READ MORE

Apr 14, 2020 in Docker by MD
• 95,240 points
15,485 views
0 votes
1 answer

How to fix unhealthy Docker Container? what could be the reason behind unhealthy status?

Restarting of unhealthy container feature was in ...READ MORE

Oct 30, 2020 in Docker by Rajendra
5,898 views
0 votes
1 answer

How to enable SSH inside Docker container?

Hi@akhtar, To enable SSH inside Docker Container, you ...READ MORE

Jun 4, 2020 in Docker by MD
• 95,240 points
12,080 views
0 votes
4 answers

I'm trying to run docker with Jenkins pipeline but I'm facing this Jenkins pipeline error and a socket.io error.

This happens when the Jenkins user is ...READ MORE

Jun 26, 2018 in Docker by Sophie may
• 10,550 points
26,969 views
+1 vote
0 answers

unable to build docker-compose.yml file

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

Feb 8 in Docker by Amit
• 130 points
347 views
0 votes
1 answer

How to run firefox inside docker container?

Hi@akhtar, Generally, if you run firefox inside docker ...READ MORE

Apr 16, 2020 in Docker by MD
• 95,240 points
12,077 views
0 votes
1 answer

How to remove a worker node from the docker swarm cluster?

Hi@akhtar, To remove a worker node from the ...READ MORE

Dec 24, 2020 in Docker by MD
• 95,240 points
1,010 views
0 votes
1 answer

How to connect to the localhost of the machine from the Docker container?

Hi@akhtar, You can use --network="host" in your docker run command. It will ...READ MORE

Dec 23, 2020 in Docker by MD
• 95,240 points
911 views
0 votes
1 answer

How to configure autoscaling on docker swarm?

Hi@akhtar, There are no concepts available on the ...READ MORE

Dec 28, 2020 in Docker by MD
• 95,240 points
645 views
+1 vote
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,240 points
600 views
0 votes
1 answer

What is the difference between bridge network and overlay network?

Hi@akhtar, The Bridge is the default network driver. If ...READ MORE

Dec 28, 2020 in Docker by MD
• 95,240 points
431 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,240 points
373 views
0 votes
1 answer

How to change node availability in docker swarm?

Hi@akhtar, You can change the node availability according to ...READ MORE

Dec 28, 2020 in Docker by MD
• 95,240 points
404 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,240 points
455 views
0 votes
1 answer

How to create docker image from EC2?

Hi@Lakshminarayanan, As you said you have a Windows ...READ MORE

Dec 30, 2020 in Docker by MD
• 95,240 points
194 views
0 votes
1 answer

How to rename docker service in swarm?

Hi@akhtar, You can run the docker service update ...READ MORE

Dec 28, 2020 in Docker by MD
• 95,240 points
260 views
0 votes
1 answer

How to get the hostname of the manager node in the Docker swarm?

Hi@akhtar, You can find the manager hostname using ...READ MORE

Dec 24, 2020 in Docker by MD
• 95,240 points
382 views
0 votes
1 answer

How to disable docker swarm mode?

Hi@akhtar, You can use the docker swarm leave ...READ MORE

Dec 28, 2020 in Docker by MD
• 95,240 points
208 views
0 votes
1 answer

How to get logs in Docker Swarm?

Hi@akhtar, You can get the logs of your ...READ MORE

Dec 28, 2020 in Docker by MD
• 95,240 points
105 views
0 votes
1 answer

How to create an overlay network in Docker swarm?

Hi@akhtar, To create an overlay network for use ...READ MORE

Dec 28, 2020 in Docker by MD
• 95,240 points
93 views
0 votes
1 answer

How to delete services from Docker swarm cluster?

Hi@akhtar, You can delete your services with the ...READ MORE

Dec 24, 2020 in Docker by MD
• 95,240 points
91 views
0 votes
1 answer

How to create a Docker swarm in Linux system?

Hi@akhtar, You need to initialize one node with ...READ MORE

Dec 24, 2020 in Docker by MD
• 95,240 points
87 views
0 votes
1 answer

What is Docker Swarm?

Hi@akhtar, A Docker Swarm is a group of ...READ MORE

Dec 24, 2020 in Docker by MD
• 95,240 points
88 views
0 votes
1 answer

How to add one worker node to the Docker swarm?

Hi@akhtar, You will get one token when you ...READ MORE

Dec 24, 2020 in Docker by MD
• 95,240 points
82 views
0 votes
1 answer

How to create a service in Docker swarm?

Hi@akhtar, To create a service in Docker swarm, ...READ MORE

Dec 24, 2020 in Docker by MD
• 95,240 points
71 views
0 votes
1 answer

mkdir: cannot create directory '/var/lib/grafana/plugins': Permission denied

Hi@akhtar, You are getting this error because Grafana ...READ MORE

Sep 6, 2020 in Docker by MD
• 95,240 points
4,748 views
0 votes
1 answer

How Docker is different from a virtual machine?

Hi@akhtar, Docker is container-based technology and containers are ...READ MORE

Dec 23, 2020 in Docker by MD
• 95,240 points
91 views
0 votes
1 answer

Re: VMSetError: Call to WHvSetupPartition failed: ERROR_SUCCESS (Last=0xc000000d/87)

Hi@akhtar, You need to run the below command ...READ MORE

Dec 21, 2020 in Docker by MD
• 95,240 points
130 views
0 votes
1 answer

How to use Docker Machine to provision hosts on virtualbox?

Hi@akhtar,  You can run the docker-machine create command, pass the ...READ MORE

Dec 21, 2020 in Docker by MD
• 95,240 points
71 views
0 votes
1 answer

How to switch to another host in Docker Toolbox?

Hi@akhtar, You can change the host from your ...READ MORE

Dec 21, 2020 in Docker by MD
• 95,240 points
65 views
0 votes
1 answer

Error response from daemon: This node is not a swarm manager. Use "docker swarm init" or "docker swarm join" to connect this node to swarm and try again.

Hi@akhtar, The secret very much depends on swarm mode ...READ MORE

Aug 17, 2020 in Docker by MD
• 95,240 points
5,042 views
0 votes
1 answer

How can i start with DOCKER as a back-front end web dev?

Hi@aminegac, For running an application you need an ...READ MORE

Dec 4, 2020 in Docker by MD
• 95,240 points
127 views
0 votes
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,240 points
1,854 views
0 votes
1 answer

E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)

Hi@akhtar, To install any software using non root ...READ MORE

Jun 6, 2020 in Docker by MD
• 95,240 points
7,731 views
0 votes
1 answer

unable to connect to docker container created via docker toolbox from browser of windows 8

Hi@Abhishek, You can't connect the docker container from ...READ MORE

Nov 16, 2020 in Docker by MD
• 95,240 points
191 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,240 points
1,562 views
0 votes
1 answer

Could you please provide roles and responsibilities for a person skilled with Docker Tool?

Docker plays a crucial role in DevOps, ...READ MORE

Oct 27, 2020 in Docker by Ashish
571 views