March 2017
Beginner to intermediate
925 pages
18h 11m
English
We can delete a container permanently, but before that we have to stop the container or use the force option. In this recipe, we'll start, stop, and delete a container.
Make sure the Docker daemon is running on the host and you can connect through the Docker client. You will also need some containers in a stopped or running state to delete them.
$ docker rm [ OPTIONS ] CONTAINER [ CONTAINER ]
$ ID='docker run -d -i fedora /bin/bash ' $ docker stop $ID $ docker rm $ID

As we can see from the ...
Read now
Unlock full access