Trending questions in Docker

+8 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
930,329 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,320 points
289,186 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,570 points
169,349 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
85,206 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
81,740 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,320 points
53,113 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
46,834 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,320 points
27,126 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,320 points
21,841 views
0 votes
2 answers

what is docker in devops?

Docker is a technology or platform that ...READ MORE

Jan 5 in Docker by Neha
• 820 points
15 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
18,821 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,320 points
23,660 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,320 points
9,292 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,570 points
31,881 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
8,356 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,320 points
14,065 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,320 points
13,955 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 7, 2020 in Docker by MD
• 95,320 points
7,325 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
541 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,320 points
2,129 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,320 points
1,864 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,320 points
7,293 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,320 points
1,279 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,320 points
1,113 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,320 points
910 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,320 points
840 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,320 points
813 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,320 points
775 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,320 points
726 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,320 points
448 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,320 points
443 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,320 points
9,311 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,320 points
331 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,320 points
153 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,320 points
135 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,320 points
219 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,320 points
152 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,320 points
120 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,320 points
120 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,320 points
2,835 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,320 points
99 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,320 points
142 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,320 points
177 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,320 points
98 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,320 points
93 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,320 points
168 views
0 votes
1 answer

iptables v1.6.0: can't initialize iptables -F: Permission denied (you must be root)

Hi@akhtar, You may get this error, if you didn't ...READ MORE

May 12, 2020 in Docker by MD
• 95,320 points
8,938 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,320 points
2,179 views