Trending 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,231,157 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
350,476 views
+1 vote
1 answer

Error response from daemon: get "https://registry-1.docker.io/v2/": unauthorized: incorrect username or password

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 231,494 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
251,043 views
+1 vote
1 answer

How to install package in docker container?

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

Apr 15, 2020 in Docker by MD
• 95,460 points
148,486 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
125,009 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
111,334 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

sudo rm -rf /var/run/docker.pid READ MORE

Dec 22, 2022 in Docker by Marshall

edited Mar 5 69,878 views
0 votes
1 answer

What tools are recommended for performance testing and tuning Dockerized applications?

There are several tools available for the performance testing and Dockerized application tuning in the resources monitoring, bottlenecks, and application performance optimization. Some of the most effective ...READ MORE

Nov 21, 2024 in Docker by Gagana
• 10,030 points
215 views
0 votes
1 answer

How can I securely manage secrets (like API keys) within Docker containers?

For the secure management of secrets like API keys, passwords, or ...READ MORE

Nov 21, 2024 in Docker by Gagana
• 10,030 points
184 views
0 votes
1 answer

How can I reduce Docker container startup time, especially for large applications?

There is a need to make container startup faster for real-time deployments. Here's what you can tune: Use ...READ MORE

Nov 21, 2024 in Docker by Gagana
• 10,030 points
167 views
0 votes
1 answer

How can I share data between two running Docker containers?

Share data between two running containers by various means depending on the use case. ...READ MORE

Nov 5, 2024 in Docker by Gagana
• 10,030 points
196 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
63,488 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
42,364 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
1,211 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.

docker swarm init --advertise-addr  192.168.99.1 READ MORE

Jun 3, 2022 in Docker by anonymous

edited Mar 5 22,229 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
9,034 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,989 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
4,402 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,609 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
2,810 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,927 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
2,354 views
0 votes
1 answer

docker: driver failed programming external connectivity on endpoint webserver

Hello, I had the same issue when ...READ MORE

Oct 6, 2022 in Docker by chanaiagwata83@gmail.com

edited Mar 5 12,284 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
2,115 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,860 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
2,231 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,782 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,778 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,633 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,476 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,384 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,620 points
46,843 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
1,323 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
1,226 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
975 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
885 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
1,004 views
0 votes
0 answers

How do I set environment variables during the build in docker

I've tried unsuccessfully to set environment variables ...READ MORE

May 10, 2022 in Docker by pranav
• 2,590 points

edited Mar 4 132 views
0 votes
0 answers

What's the difference between Docker Compose and Kubernetes?

While learning about Docker, GCP, and Kubernetes, ...READ MORE

May 10, 2022 in Docker by pranav
• 2,590 points

edited Mar 4 126 views
0 votes
0 answers

What are Docker image "layers"?

I'm new to Docker and am attempting ...READ MORE

May 10, 2022 in Docker by pranav
• 2,590 points

edited Mar 4 125 views
0 votes
0 answers

An error, "failed to solve with frontend dockerfile.v0"

I was attempting to create a Docker ...READ MORE

May 10, 2022 in Docker by pranav
• 2,590 points

edited Mar 4 123 views
0 votes
0 answers

Cannot enable Hyper-V service with Docker in windows 10

I have BIOS virtualization enabled and also ...READ MORE

May 10, 2022 in Docker by pranav
• 2,590 points

edited Mar 4 106 views
0 votes
0 answers

How to SSH into Docker?

I want this type of infrastructure to ...READ MORE

May 10, 2022 in Docker by pranav
• 2,590 points

edited Mar 4 104 views
0 votes
0 answers

How to fix docker: Got permission denied issue

I have ubuntu os with docker installed. If ...READ MORE

May 10, 2022 in Docker by pranav
• 2,590 points

edited Mar 4 104 views
0 votes
0 answers

How to easily install and uninstall docker on MacOs?

As the title says, I need an ...READ MORE

May 10, 2022 in Docker by pranav
• 2,590 points

edited Mar 4 102 views
0 votes
0 answers

How to get Docker desktop on Ubuntu?

I'm new to Docker and Kubernetes, and ...READ MORE

May 10, 2022 in Docker by pranav
• 2,590 points

edited Mar 4 97 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
720 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
868 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
603 views