Notes
Search…
Commands
Docker command cheat sheet.

Image

  1. 1.
    List all docker images
1
$ docker images
Copied!
2. List only those images who has none substring in information
1
$ docker images | grep none
Copied!
3. Print ID (3rd field) of the docker images who has none substring in their info.
1
$ docker images | grep none | awk '{print $3}'
Copied!
4. Remove the images who has none substring in their information.
1
$ docker rmi -f (docker images | grep none | awk '{print $3}')
Copied!
5. Free disk taken by docker images, volume etc.
1
docker system prune --all
Copied!
Last modified 1yr ago
Copy link