5. List of Docker file instructions and its Brief Summary? by Bharath Srinivas
Limited Time Offer!
For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!
FROM : To get the base image
MAINTAINER: author of the generated image
ADD: It is similar to COPY but it supports get remote URLs and also unzips tar balls
RUN: Run is used to run specific commands.
CMD: This is similar to ENTRYPOINT it allows the override the command
ENTRYPOINT: after starting the container it is the initial process that runs. Entry point doesn’t allow override the command
WORKDIR: Used to create working directory inside the container.
COPY: copy files/folders from local machine to the container