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!

Enroll Now

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

Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x