Top "Dockerfile" questions

A Dockerfile is a file containing instructions to build a Docker image

How do I pass environment variables to Docker containers?

I'm new to Docker, and it's unclear how to access an external database from a container. Is the best way …

docker environment-variables dockerfile
What is the difference between the 'COPY' and 'ADD' commands in a Dockerfile?

What is the difference between the COPY and ADD commands in a Dockerfile, and when would I use one over …

docker dockerfile
How to add users to Docker container?

I have a docker container with some processes (uwsgi and celery) running inside. I want to create a celery user …

linux ubuntu dockerfile
How to set image name in Dockerfile?

You can set image name when building a custom image, like this: docker build -t dude/man:v2 . # Will be …

docker tags dockerfile
denied: requested access to the resource is denied : docker

I am following this link to create my first docker Image and it went successfully and now I am trying …

docker dockerfile
Docker: unable to prepare context: unable to evaluate symlinks in Dockerfile path: GetFileAttributesEx

I just downloaded Docker Toolbox for Windows 10 64bit today. I'm going through the tutorial. I'm receving the following error when …

docker dockerfile docker-toolbox docker-build
Dockerfile copy keep subdirectory structure

I'm trying to copy a number of files and folders to a docker image build from my localhost. The files …

copy docker dockerfile
Run a script in Dockerfile

I'm trying to run a script during my building process in my Dockerfile. But it doesn't seems to work. I …

docker dockerfile
Docker is installed but Docker Compose is not ? why?

I have installed docker on centos 7. by running following commands, curl -sSL https://get.docker.com/ | sh systemctl enable docker &…

docker docker-compose dockerfile
What's the difference between Docker Compose vs. Dockerfile

I have been reading up and learning about Docker, and am trying to correctly choose the Django setup to use. …

docker docker-compose dockerfile development-environment boot2docker