- Install pre-commit package
docker images # list all download images
docker image rmi <IMAGE ID> # purge image
docker image rmi <REPOSITORY:TAG> # purge image
docker rmi $(docker images -a -q) # remove all images
docker run -it <image> bash # Running the run command with the -it flags attaches us to an interactive tty in the container.