Question 211 · 300 in bank
A newly created container has been unable to start properly, and a Linux administrator is analyzing the cause of the failure. Which of the following will allow the administrator to determine the FIRST command that is executed inside the container right after it starts?
Show answer
Answer: D
Explanation
D. docker inspect The docker inspect command provides detailed information about a Docker container, including its configuration and state. Among the information available from this command is the entrypoint, which is the first command that is executed inside the container when it starts. By inspecting the container with docker inspect, the administrator can determine the first command that is executed inside the container and potentially diagnose why it is unable to start properly.
Source: Adapted from community discussion — linux_admin
