Most voted questions in Docker

+1 vote
1 answer

Build Docker image for PHP Web application - ADD failed

Thank you Sirajul Yes, I have changed it ...READ MORE

Jul 15, 2019 in Docker by limcw
• 270 points
2,217 views
+1 vote
1 answer

What is a docker file? How do I create a docker image with dockerfile?

 A Dockerfile is a script/text configuration file that contains ...READ MORE

Jun 7, 2019 in Docker by Sirajul
• 59,230 points
4,027 views
+1 vote
2 answers

Whats the difference between CMD and ENTRYPOINT?

Both the instructions , we are using ...READ MORE

Aug 10, 2020 in Docker by Vishal
• 260 points
2,437 views
+1 vote
1 answer

Docker for Windows Error: Open cmd executing docker machine env

You can put the commands in: Shortcut Properties ...READ MORE

Nov 12, 2018 in Docker by Tyrion anex
• 8,700 points
685 views
+1 vote
1 answer

Unable to run Docker commands on Windows

This problem occurs because, docker daemon is ...READ MORE

Oct 25, 2018 in Docker by Sophie may
• 10,610 points
1,327 views
+1 vote
1 answer

How to mount private SSH key on Docker for Windows container?

You could use a volume with -v ...READ MORE

Oct 25, 2018 in Docker by Sophie may
• 10,610 points
3,105 views
+1 vote
1 answer

What is the default amount of memory provided for Windows Docker containers?

Docker for Windows containers by default get: On ...READ MORE

Oct 25, 2018 in Docker by Sophie may
• 10,610 points
546 views
+1 vote
3 answers

Docker on Windows error: “docker pull redis” fails

I faced a similar issue, the server ...READ MORE

Oct 17, 2018 in Docker by Tyrion anex
• 8,700 points
2,104 views
+1 vote
1 answer

Can't recover docker swarm from pending state

First, note the node IDs On manager node: docker ...READ MORE

Sep 26, 2018 in Docker by Kalgi
• 52,360 points
4,509 views
+1 vote
1 answer

How do I start a shell session in a running container without using ssh

Here is what you can try. you should ...READ MORE

Sep 11, 2018 in Docker by Damon Salvatore
• 5,980 points
868 views
+1 vote
2 answers

How do I run a docker image as a container?

You can run an image depends on whether you ...READ MORE

Sep 7, 2018 in Docker by Damon Salvatore
• 5,980 points
1,316 views
+1 vote
7 answers

How to connect to a Docker container running mysql on Windows 10?

Avoid using bind_address in your my.cnf file. I don't ...READ MORE

Apr 25, 2019 in Docker by Haseeb
12,115 views
+1 vote
2 answers

How do I remove an image in Docker?

Here is what you can try. Use docker ...READ MORE

Sep 4, 2018 in Docker by Damon Salvatore
• 5,980 points
728 views
+1 vote
2 answers

How do I copy a file from docker container to host?

Here is a way which you can ...READ MORE

Aug 28, 2018 in Docker by Damon Salvatore
• 5,980 points
28,202 views
+1 vote
1 answer

Load balance docker swarm

There could be two possibilities  The command in docker-compose.yml file should be ...READ MORE

Aug 24, 2018 in Docker by Kalgi
• 52,360 points
949 views
+1 vote
4 answers

Docker Compose wait for container X before starting Y

You can use the depends_on feature was ...READ MORE

May 7, 2019 in Docker by Kunal
10,563 views
+1 vote
1 answer

How to deploy a java app to Docker?

If you are having JAR file, the quickest ...READ MORE

Aug 2, 2018 in Docker by Damon Salvatore
• 5,980 points
810 views
+1 vote
1 answer

How to expose docker container's ip and port to outside docker host without port mapping?

you can accomplish this with IP aliasing ...READ MORE

Aug 2, 2018 in Docker by Kalgi
• 52,360 points

edited Jan 16, 2020 by Kalgi 30,915 views
+1 vote
2 answers

Add Insecure Registry to Docker

I added into /etc/default/docker file DOCKER_OPTS="--insecure-registry <myip>:5000" I edited that ...READ MORE

Apr 26, 2019 in Docker by Hitesh
12,131 views
+1 vote
5 answers

My docker container has no internet

Try resetting all the parameters pkill docker iptables -t ...READ MORE

Jul 31, 2018 in Docker by Kalgi
• 52,360 points
17,935 views
+1 vote
4 answers

Docker compose, running containers in net:host

Hey@Hannah, Check the compose file format specifications ...READ MORE

May 7, 2019 in Docker by Kishore
4,941 views
+1 vote
4 answers

Communication between multiple docker-compose projects

You just need to make sure that ...READ MORE

Jul 30, 2018 in Docker by Kalgi
• 52,360 points
14,189 views
+1 vote
1 answer

Docker Container Networking with Docker-in-Docker

Given your example docker-in-docker setup above, you ...READ MORE

Jul 30, 2018 in Docker by Kalgi
• 52,360 points
2,806 views
+1 vote
1 answer

How to push a docker image to a private repository

You need to tag your image correctly ...READ MORE

Jul 26, 2018 in Docker by Kalgi
• 52,360 points
1,902 views
+1 vote
1 answer

Error while running docker run command

This error occurs when your port is ...READ MORE

Jul 26, 2018 in Docker by Kalgi
• 52,360 points
1,477 views
+1 vote
1 answer

How do I pass environment variables to Docker containers?

You can pass environment variables to your ...READ MORE

Jul 20, 2018 in Docker by Kalgi
• 52,360 points
1,438 views
+1 vote
4 answers

How to send application logs from docker to cloudwatch

There are 3 main steps involved it ...READ MORE

Mar 25, 2019 in Docker by RT
6,040 views
+1 vote
2 answers

How to copy docker images from one host to another without a repository?

To save an image to any file ...READ MORE

Aug 13, 2019 in Docker by Sirajul
• 59,230 points
10,730 views
+1 vote
1 answer

How to remove old Docker containers

There is a new feature in Docker 1.13.x called Docker ...READ MORE

Jul 18, 2018 in Docker by Kalgi
• 2,680 points
522 views
+1 vote
5 answers

Set containers timezones by using docker compose.

version "2" services: serviceA: ...READ MORE

Jul 9, 2018 in Docker by Atul
• 10,240 points
22,781 views
+1 vote
2 answers

How to run docker containers on different machines

You can use labels and selectors for ...READ MORE

Oct 23, 2018 in Docker by Laila
3,204 views
+1 vote
4 answers

COPY is not working in Docker

I had the exact same issue. I ...READ MORE

May 6, 2019 in Docker by Emilia
21,460 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
436 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,549 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,301 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
472 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,111 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,729 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
416 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
561 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,194 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
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,908 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,673 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
728 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
536 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
960 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,815 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,070 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,173 views