List of dockerfile instructions and its Brief Summary?

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

There are multiple INSTRUCTIONS that are available in Dockerfile, some of these include:

From :The FROM instruction specifies the Base Image from which you are building.
RUN: In this we can run our commands for installing the packages
ADD: This instruction will give the output of converting tar file in to normal file and it will add in to that particular directory.
COPY: This instruction will give the output of copying the content and nothing will do more than that in the docker instruction. This instruction will give you the result of moving files.
EXPOSE: The EXPOSE instruction informs Docker that the container listens on the specified network ports at runtime.
WORKDIR: The WORKDIR instruction sets the working directory for any RUN, CMD, ENTRYPOINT, COPY and ADD instructions that follow it in the Dockerfile.The WORKDIR instruction can be used multiple times in a Dockerfile.

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