How do I run multiple commands in Dockerfile?

Khánh Đoan

New member
How do I run multiple commands in Dockerfile?
Answer
Hard way of running multiple startup commands.
  1. Add one startup command to your docker file and run it docker run <image-name>
  2. Then open the running container using docker exec command as follows and run the desired command using sh program.
 

Tìm kiếm

Back
Top