What is ONBUILD command in Docker?

0

We use the ONBUILD command in Docker to run the instructions that have to execute after the completion of the current Dockerfile build. It is used to build a hierarchy of images that have to be built after the parent image is built. ADocker builds will execute first ONBUILDcommand and then it will execute any other command in the Child Docker file.

Devops docker
asked Apr 30, 2023 at 23:02
Sign in to add a comment

0 Answers

0
📝 No answers yet!

Be the first to answer this interview question.

Your Answer

Sign in to post your answer and help the community.