Home › Docker Tutorial › Stop, start and remove containers
Stop, start and remove containers
Control the life of a container.
docker stop sends a polite shutdown signal, docker start restarts a stopped container, and docker rm deletes it. -f forces removal of a running one. Each command prints the name or ID it acted on.
Example code
docker stop web
docker start web
docker rm -f web