Why is Docker holding onto stopped containers?

What is the reason for stopping containers? Can they be restarted in any way?

+4
source share
1 answer

Because you want to save uncommitted changes for recovery, image creation, or general inspection.

Stopped containers can be restarted by the command docker start <container-name>and can be viewed usingdocker ps -a

In addition, you can commit the changes for any container (even if the container is stopped) in the local registry using docker commit <container-name> <repository>:<tag>

+6
source

All Articles