QuestionQ22

Verified702.3 Container Image Building

Which of the following Dockerfile statements result in a container that outputs hello world?

Choose two
Explanation

ENTRYPOINT accepts shell form, where echo hello world is executed by a shell, and exec form, where a JSON array specifies the executable and separate arguments. echo with the arguments hello and world outputs hello world.

Community Discussion

No comments yet. Be the first to start the discussion!