QuestionQ72

Application Deployment and Security

Question Image

Refer to the exhibit. Drag the actions on the left that this Dockerfile performs to the right. Not every option is used.

Drag & Drop
Inject the image myImage.
Pull the image myImage.
Execute the “data” script under “/bin/sh”.
Establish a volume whose root is “/data”.
Put the user in a shell inside the container.
step 1
step 2
step 3
Explanation

FROM defines the base image (and Docker obtains it if it is not local). VOLUME ["/data"] declares /data as a volume mount point. The exec-form ENTRYPOINT ["/bin/sh"] makes /bin/sh the container’s executable, starting a shell when the container runs.

Learn more

Community Discussion

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