QuestionQ54

VerifiedContainer Virtualization

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

Choose two
Explanation

An ENTRYPOINT in exec form must specify the executable and its arguments as separate array elements, such as echo, hello, and world. In shell form, an unquoted command line is executed by the container’s shell, allowing echo Hello World to print the message.

Community Discussion

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