Interviewer: What are the commonly used instructions in dockerfile?

foreword

I am Mu Fengxiaoyue. Starting today, my paid column "Interview Collection" is online. There are several advantages:

  • The closest to the interview market, are the latest interview questions from the students of the bosses or the company
  • The most detailed interview method, the routine summarized from the interview review of nearly a thousand students.
  • Each set of written test questions has an answer, and each interview question has a detailed explanation, so that you can apply what you have learned.

All users who subscribe to this column before all the updates of the column are completed will get the matching video tutorials for free, and the sooner you subscribe, the sooner you will benefit.

interview scene

The interviewer is here again. Today's question is what are the commonly used commands in dockerfile? Can you tell me the difference between copy and add? If the preparation is not complete, it is likely to be lame.

Common instructions for dockerfile

  • What is a Dockerfile?

Dockerfile is just a source code file used to make a mirror. It is an instruction in the process of building a container. Docker can read the specification of the dockerfile to automatically build a container. Make a mirror based on the dockerfile. Each command will create a mirror layer

Guess you like

Origin blog.csdn.net/wisdom_futrue/article/details/131399538