Start web-1 and web-2 from the same container image.
Which relationship is correct?
An image is a mostly read-only runtime template. Multiple containers can be created from it, each with its own writable layer and state.
Detailed explanation
Incorrect. An image is not a process ID.
Incorrect. An image is not a process ID.
Incorrect. Separate containers do not automatically share writable state.
Incorrect. Separate containers do not automatically share writable state.
Incorrect. Stopping a container does not delete its source image.
Incorrect. Stopping a container does not delete its source image.
Correct. One image can be the template for multiple running containers.
Correct. One image can be the template for multiple running containers.
Try it yourself
An example you can run in a temporary verification environment.
docker image --help 2>/dev/null || trueExpected result
Dockerがある場合はimage管理help。daemonへ接続しないKey points
- Image
- Container instance
- Writable layer
Notes
- Environment: Docker CLIが存在する場合のみhelp表示
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.