QuestionQ54Verified/Container VirtualizationCopy linkReport a problemAsk AstroTutorSave questionWhich of the following Dockerfile statements results in a container that outputs hello world?Choose twoAENTRYPOINT "echo Hello World"BENTRYPOINT [ "echo hello world" ]CENTRYPOINT [ "echo", "hello", "world" ]DENTRYPOINT echo Hello WorldEENTRYPOINT "echo", "Hello", "World"Show AnswerAnswerExplanationAn 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.Show comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion