Top "Dockerfile" questions

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

Docker images - types. Slim vs slim-stretch vs stretch vs alpine

I am looking to pick up a docker image to build a java app and looking at the variants of …

java docker dockerfile
apt-get install tzdata noninteractive

When I try to apt-get install -y tzdata the command line option for picking timezone shows up. I am trying …

bash ubuntu dockerfile apt-get
How do I Docker COPY as non root?

While building a Docker image, how do I COPY a file into the image so that the resulting file is …

docker dockerfile
Can we pass ENV variables through cmd line while building a docker image through dockerfile?

I am working on a task that involves building a docker image with centOs as its base using a Dockerfile . …

docker environment-variables boot2docker dockerfile
Docker: Using --password via the CLI is insecure. Use --password-stdin

I have this error when I login during a CI process: WARNING! Using --password via the CLI is insecure. Use …

docker continuous-integration dockerfile
How to view logs for a docker image?

In the docker world, one can easily see logs for docker container (that is, a running image). But during image …

docker dockerfile docker-image
Dockerfile: Setting multiple environment variables in single line

I was under the impression that environmental variables could be set on a single line as follows so as to …

docker dockerfile
Dockerfile - set ENV to result of command

Is it possible to set a docker ENV variable to the result of a command? Like: ENV MY_VAR whoami …

dockerfile env
Docker - image operating system "windows" cannot be used on this platform

I tried this on my Windows 10 machine: Dockerfile: From microsoft/nanoserver CMD ["echo", "Hello World"] PS C:\FSD\Docker\Trial1&…

docker docker-compose dockerfile boot2docker docker-machine
How to ADD all files/directories except a hidden directory like .git in Dockerfile

One of things we do often is to package all source code in Dockerfile when we build a Docker image. …

docker dockerfile