Latest questions in Docker

+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,446 views
0 votes
1 answer

How to list containers in Docker

To show only running containers use the given command: docker ...READ MORE

Jul 20, 2018 in Docker by Kalgi
• 52,360 points
496 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,053 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,281 views
0 votes
1 answer

How to continue running a docker container which is already exited?

Restart an existing container after you exited ...READ MORE

Jul 19, 2018 in Docker by Sophie may
• 10,610 points
2,293 views
0 votes
2 answers

How to execute docker exec commande inside a docker container ?

You need to get inside the container ...READ MORE

Aug 13, 2019 in Docker by Sirajul
• 59,230 points
3,335 views
0 votes
1 answer

Slave image does not support running docker

You need to install docker client and ...READ MORE

Jul 19, 2018 in Docker by Kalgi
• 2,680 points
2,281 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,742 views
+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,226,342 views
0 votes
1 answer

Unable to switch filesystem to overlay in Docker in Ubuntu.

From the official docs: https://docs.docker.com/engine/userguide/storagedriver/overlayfs-driver/#configure-docker-with-the-overlayoverlay2-storage-driver To configure Docker ...READ MORE

Jul 18, 2018 in Docker by ajs3033
• 7,300 points
2,520 views
0 votes
1 answer

What is the difference between “expose” and “publish” in Docker?

Basically, you have three options: Neither specify EXPOSE nor -p -> ...READ MORE

Jul 18, 2018 in Docker by Nilesh
• 7,050 points
3,086 views
0 votes
1 answer

Error saying "build" requires 1 argument. See 'docker build --help'

Try adding a period at the end ...READ MORE

Jul 18, 2018 in Docker by Nilesh
• 7,050 points
4,649 views
0 votes
1 answer

Using SSH keys inside docker container

Turns out when using Ubuntu, the ssh_config ...READ MORE

Jul 18, 2018 in Docker by Nilesh
• 7,050 points
12,453 views
0 votes
1 answer

Where is the Docker daemon log?

It depends on your OS. Here are ...READ MORE

Jul 18, 2018 in Docker by Kalgi
• 2,680 points
3,837 views
+2 votes
5 answers

Where are Docker images stored on the host machine?

The contents of the /var/lib/docker directory vary ...READ MORE

Jul 18, 2018 in Docker by Kalgi
• 2,680 points
11,833 views
0 votes
1 answer

Docker can't connect to docker daemon

The Post-installation steps for Linux documentation reveals the following ...READ MORE

Jul 18, 2018 in Docker by Kalgi
• 2,680 points
1,088 views
0 votes
1 answer

How to deal with persistent storage (e.g. databases) in docker

For Docker 1.9.0 and above, Use volume API docker ...READ MORE

Jul 18, 2018 in Docker by Kalgi
• 2,680 points
593 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,351 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
529 views
0 votes
1 answer

Should I use Vagrant or Docker for creating an isolated environment?

If your purpose is the isolation, I ...READ MORE

Jul 18, 2018 in Docker by Kalgi
• 2,680 points
766 views
0 votes
1 answer

How can you detach from Docker's process?

This is simple, in order to detach ...READ MORE

Jul 17, 2018 in Docker by Sophie may
• 10,610 points
1,595 views
0 votes
1 answer

How to remove old Docker images?

Run the following command: docker $ (docker images ...READ MORE

Jul 17, 2018 in Docker by Sophie may
• 10,610 points
604 views
0 votes
1 answer

How do I fix this error? docker run --- name “xyz” is already in use by container

This is due to a confusion. There ...READ MORE

Jul 17, 2018 in Docker by Sophie may
• 10,610 points
11,458 views
0 votes
1 answer

How to obtain the Docker container's IP address from the host?

This can be done by executing the ...READ MORE

Jul 17, 2018 in Docker by Sophie may
• 10,610 points
8,630 views
0 votes
1 answer

Docker unable to connect AWS EC2 cloud

Your command is not pointing to your ...READ MORE

Jul 16, 2018 in Docker by Kalgi
• 52,360 points
1,328 views
0 votes
1 answer

How to store data in external drive with Docker Postgres:9.3 image?

Apparently, the problem would be in your ...READ MORE

Jul 12, 2018 in Docker by Kalgi
• 2,680 points
2,370 views
0 votes
1 answer

Is it possible to create a docker swarm cluster using nodes on different cloud providers?

if your nodes could access each other, ...READ MORE

Jul 12, 2018 in Docker by Kalgi
• 2,680 points
965 views
0 votes
2 answers

How to transfer docker images from one machine to another without using a repository?

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

Aug 13, 2019 in Docker by Sirajul
• 59,230 points
12,034 views
0 votes
1 answer

DevOps: automatically restarting a failed container

Check first if you can add restart policies ...READ MORE

Jul 11, 2018 in Docker by Kalgi
• 2,680 points
406 views
0 votes
1 answer

Docker : multiples linked containers for each customers

Using Docker (specifically Docker Compose) linking containers ...READ MORE

Jul 11, 2018 in Docker by Kalgi
• 2,680 points
395 views
0 votes
1 answer

Dockerfile entrypoint script arguments in docker run

RUN instructions happen at build time. ENTRYPOINT and ...READ MORE

Jul 11, 2018 in Docker by Kalgi
• 2,680 points

edited Jul 11, 2018 by Kalgi 7,341 views
0 votes
1 answer

Error “unable to resolve host docker”

This error occurs because its not a ...READ MORE

Jul 10, 2018 in Docker by Kalgi
• 2,680 points
4,636 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,800 views
0 votes
1 answer

Isolate PHP applications with Docker

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

Jul 6, 2018 in Docker by Atul
• 10,240 points
553 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,225 views
0 votes
1 answer

How to run a docker command from inside the container?

You must have come across the /var/run/docker.sock file, ...READ MORE

Jun 28, 2018 in Docker by Sophie may
• 10,610 points
3,281 views
0 votes
1 answer

Different file owner inside Docker container and in host machine

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

Jun 27, 2018 in Docker by Atul
• 10,240 points
1,740 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,754 views
0 votes
1 answer

Different file owner inside Docker container and in host machine Ask

Filesystems, at least in Unix- and Linux-like ...READ MORE

Jun 25, 2018 in Docker by Damon Salvatore
• 5,980 points
743 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,497 views
0 votes
1 answer

Presenting docket dtates inside html page by javascript

Use the Docker Engine Api:Docker Engine API ...READ MORE

Jun 20, 2018 in Docker by DareDev
• 6,890 points
511 views
0 votes
1 answer

How do I scale in Docker Swarm Mode W/Terraform Digital Ocean Load Balancing

The solution you could build for Digital ...READ MORE

Jun 19, 2018 in Docker by shubham
• 7,340 points
1,278 views
0 votes
1 answer

Is Dockerfile versioning a best practice?

According to me , it will be ...READ MORE

Jun 17, 2018 in Docker by shubham
• 7,340 points
715 views
0 votes
1 answer

Docker config to edit Node code when run

What you can do is pass environment ...READ MORE

Jun 17, 2018 in Docker by shubham
• 7,340 points
529 views
0 votes
1 answer

Docker containers as Jenkins Slave build agents

When you encapsulate the stage inside a ...READ MORE

Jun 16, 2018 in Docker by Atul
• 10,240 points
2,231 views
0 votes
1 answer

Docker ports are working on the localhost but not with public ip

Probably, the reason is that you've included ...READ MORE

Jun 12, 2018 in Docker by Damon Salvatore
• 5,980 points

edited Oct 15, 2018 by Kalgi 3,942 views
0 votes
1 answer

Preferred method for Docker File Versioning

Use labels to add versioning information to ...READ MORE

Jun 11, 2018 in Docker by ajs3033
• 7,300 points
1,247 views
0 votes
1 answer

How to send docker using terraform to aws cloudwatch?

Check if you set all the permissions ...READ MORE

Jun 7, 2018 in Docker by DareDev
• 6,890 points
2,373 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,490 views
0 votes
1 answer

build an J2EE application with docker

I would suggest you to use volume ...READ MORE

May 1, 2018 in Docker by shubham
• 7,340 points
646 views