docker create nginx. What is the state of the container immediately after this command?The docker create command sets up a container but does not start it. So the container state is created.
docker run -d nginx and then pause it with docker pause [container_id]. What is the container's state after pausing?After pausing, the container is in the paused state, meaning its processes are suspended but the container is still allocated.
docker stop sends a signal to gracefully stop the container, changing its state to stopped. docker kill forcefully terminates it, but the state is still considered stopped. docker pause only suspends the container. docker rm removes the container.
docker unpause. What is a likely cause?If the Docker daemon crashes while a container is paused, it may fail to restore the paused state properly, causing the container to be stuck. The container cannot resume until the daemon is restarted or the container is manually handled.
The container lifecycle starts with created, then running when started. It can be paused and then resumed back to running. After stopping, it moves to stopped before removal.