Skip to content
List out all INSTRUCTION statement of dockerfile and give one line explanation.
- FROM – First command inside a docker file and Creates the base image.
- MAINTANER – Sets the author info of docker file.
- RUN – Runs command in the container of previous layer
- ARG -Sets the variable
- EXPORT -Expose a port
- COPY – Copies a file to the container
- ADD – copies a files from source location to a image location
- WORKDIR -Sets working directory
- CMD – To run a command or executable
- ENTRYPOINT Sets PID1
- VOLUME-Creates a mount point
- USER -Sets a user name
- ENV -Sets environment variables
- LABEL -Adds meta data to image