Commands
systemtcl start docker
: Starts the docker daemon, be sure the service is running before using any docker command
docker images
: List the available images
docker run --it --rm <name> bash
: Runs the desired image and gives a bash prompt
--rm
automatically cleans up the container and removes the file system when the container exits.
-it
is for interactive processes (like a shell).
-u
tells the username
- To reclaim space on the disk (deletes stopped containers, chache...):
docker system prune -a