QuestionQ602

Application Deployment and Security

Question Image

Refer to the exhibit. Which command, including its arguments, is executed when the container starts?

  • A /bin/sh -c "/bin/sleep 30 && nginx -g 'daemon off;'"
  • B /bin/sh -c "/bin/sleep 10 && nginx -g 'daemon off;'"
  • C /bin/bash -c "/bin/sleep 30 && nginx -g 'daemon off;'"
  • D /bin/sh -c "/bin/sleep 30" && nginx -g 'daemon off;'
Explanation

An exec-form ENTRYPOINT receives the exec-form CMD array as its default arguments. INITIAL_DELAY is persisted as 30 from the build argument, and /bin/sh -c expands it in the command string before running nginx. The executed command is /bin/sh -c "/bin/sleep 30 && nginx -g 'daemon off;'".

Learn more

Community Discussion

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