Containers
List five different instructions that are available for use in a Containerfile/Dockerfile
Difficulty: unrated
Source: bregman-arie/devops-exercises
by Arie Bregman
Answer
- WORKDIR: sets the working directory inside the image filesystems for all the instructions following it
- EXPOSE: exposes the specified port (it doesn't adds a new layer, rather documented as image metadata)
- ENTRYPOINT: specifies the startup commands to run when a container is started from the image
- ENV: sets an environment variable to the given value
- USER: sets the user (and optionally the user group) to use while running the image