0
0
Dockerdevops~5 mins

Common container startup failures in Docker - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What does the error 'OCI runtime create failed' usually indicate when starting a Docker container?
It means the container runtime failed to create the container. This often happens due to permission issues, missing files, or invalid configurations.
Click to reveal answer
beginner
Why might a Docker container exit immediately after starting?
Because the main process inside the container finished or crashed. Containers stop when their main process ends.
Click to reveal answer
beginner
What is a common cause of 'port already allocated' error in Docker?
Trying to start a container that wants to use a port already in use by another container or process on the host.
Click to reveal answer
intermediate
How can missing environment variables cause container startup failures?
If the container expects certain environment variables to configure its app and they are missing, the app may fail to start.
Click to reveal answer
beginner
What does a 'no such file or directory' error mean when starting a container?
It means the container tried to run a command or access a file that does not exist inside the container image or volume.
Click to reveal answer
What happens if the main process inside a Docker container exits immediately?
AThe container restarts automatically
BThe container stops running
CThe container runs in the background
DThe container ignores the exit
Which error indicates a port conflict when starting a Docker container?
Aport already allocated
Bno such file or directory
Cpermission denied
Dcontainer not found
What is a common reason for 'permission denied' errors when starting containers?
APort conflicts
BMissing environment variables
CTrying to access files or directories without proper rights
DContainer image not found
If a container fails because it cannot find a command to run, what is likely the cause?
AThe command is missing inside the container image
BThe container has no network
CThe container is out of memory
DThe Docker daemon is down
How can missing environment variables affect container startup?
AThe container will restart repeatedly
BThe container will ignore them and start normally
CThe container will automatically set default values
DThe app inside the container may fail to start
Explain three common reasons why a Docker container might fail to start.
Think about what the container needs to run properly.
You got /3 concepts.
    Describe how environment variables can impact container startup and what happens if they are missing.
    Consider the role of environment variables in app configuration.
    You got /3 concepts.