Trending questions in Docker

+14 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,225,979 views
+4 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,440 points
348,190 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,610 points
248,101 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,440 points

reshown Nov 22, 2023 by Soumya 211,179 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,440 points
140,216 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
120,213 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
109,861 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,440 points
64,311 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
61,201 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
780 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,440 points
41,214 views
0 votes
0 answers

Running composer install within a Dockerfile

I'm attempting to Dockerize a Laravel application. ...READ MORE

Apr 12, 2022 in Docker by Abhijeet
• 180 points
7,982 views
0 votes
0 answers

How to install PHP composer inside a docker container

I'm trying to figure out how to ...READ MORE

Apr 12, 2022 in Docker by Abhijeet
• 180 points
6,347 views
0 votes
0 answers

Unable to install Docker Desktop on Windows 10 Pro 21H1

I'm attempting to install Docker Desktop on ...READ MORE

Apr 12, 2022 in Docker by Abhijeet
• 180 points
3,466 views
0 votes
0 answers

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

I've tried every option I could find ...READ MORE

Apr 18, 2022 in Docker by pranav
• 2,590 points
3,168 views
0 votes
0 answers

Not able to start docker Desktop in Windows

In Microsoft Windows 10 professional, I am ...READ MORE

Apr 20, 2022 in Docker by pranav
• 2,590 points
2,669 views
0 votes
0 answers

Docker compose port forwarding Linux asp.net core

I have a handful of docker images ...READ MORE

Apr 20, 2022 in Docker by pranav
• 2,590 points
1,897 views
0 votes
0 answers

"docker build" requires exactly 1 argument(s)

I'm attempting to build and tag an ...READ MORE

Apr 21, 2022 in Docker by pranav
• 2,590 points
1,723 views
0 votes
0 answers

Difference between docker rm IMAGE vs docker rmi IMAGE

docker image rm "Remove one or more ...READ MORE

Apr 18, 2022 in Docker by pranav
• 2,590 points
1,783 views
0 votes
0 answers

x509: certificate signed by unknown authority - both with docker and with github

Used the below command for build- docker build ...READ MORE

Apr 21, 2022 in Docker by pranav
• 2,590 points
1,543 views
0 votes
0 answers

Dind in docker-compose connection reset by peer

In Docker, I'm attempting to connect to ...READ MORE

Apr 21, 2022 in Docker by pranav
• 2,590 points
1,293 views
0 votes
0 answers

Create Mongo docker image and add user to database

I'm attempting to figure out how to ...READ MORE

Apr 20, 2022 in Docker by pranav
• 2,590 points
1,190 views
0 votes
0 answers

Why is Docker installed but not Docker Compose?

By using the commands below, I was ...READ MORE

Apr 21, 2022 in Docker by pranav
• 2,590 points
1,108 views
0 votes
0 answers

How to know if docker is already logged in to a docker registry server

I'm not sure whether I've already used ...READ MORE

Apr 12, 2022 in Docker by Abhijeet
• 180 points
1,455 views
0 votes
0 answers

docker-compose up for only certain containers

I have numerous containers in a docker-compose.yml ...READ MORE

Apr 18, 2022 in Docker by pranav
• 2,590 points
1,064 views
0 votes
0 answers

Python flask application access to docker secrets in a swarm

I'm new to Docker and want to ...READ MORE

Apr 20, 2022 in Docker by pranav
• 2,590 points
957 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
775 views
0 votes
0 answers

docker-compose for Detached mode

I have the following command to run ...READ MORE

Apr 20, 2022 in Docker by pranav
• 2,590 points
716 views
0 votes
0 answers

How do I actually install Docker on Windows 8.1? (Docker Toolbox for Windows 8.1 was deprecated recently)

So I have been advised something like ...READ MORE

Apr 21, 2022 in Docker by pranav
• 2,590 points
558 views
0 votes
0 answers

How can I install Docker on Windows 10 Home?

I was aware that Docker would not ...READ MORE

Apr 20, 2022 in Docker by pranav
• 2,590 points
532 views
0 votes
0 answers

Kill a Docker Container

For my node program, I created a ...READ MORE

Apr 21, 2022 in Docker by pranav
• 2,590 points
463 views
0 votes
0 answers

How to create named and latest tag in Docker?

Assume I have an image that I ...READ MORE

Apr 21, 2022 in Docker by pranav
• 2,590 points
434 views
0 votes
0 answers

How to delete a docker image?

A Dockerfile is included in my project ...READ MORE

Apr 21, 2022 in Docker by pranav
• 2,590 points
403 views
0 votes
0 answers

What is docker's scratch image?

I'm new to Docker and was experimenting ...READ MORE

Apr 20, 2022 in Docker by pranav
• 2,590 points
322 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,610 points
44,633 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
22,901 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
19,887 views
0 votes
2 answers

what is docker in devops?

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

Jan 5, 2022 in Docker by Neha
• 9,060 points
1,210 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,440 points
15,210 views
–1 vote
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,440 points
20,656 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
45,104 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,440 points
16,999 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,440 points
11,041 views
0 votes
1 answer

Error:Failed to start redis.service Unit redis-server.service is masked

Hello, If redis.service file is missed in directory path /etc/systemd/system/redis.service so we ...READ MORE

May 18, 2020 in Docker by Niroj
• 82,880 points
18,890 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,440 points
17,231 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,440 points
19,345 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,440 points
17,980 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,440 points
7,262 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,440 points
6,934 views
0 votes
1 answer

How can I install systemctl tool in Docker container?

Hi@akhtar, In docker container if you want to ...READ MORE

Feb 5, 2020 in Docker by MD
• 95,440 points
19,593 views