Commands
Docker command cheat sheet.
Image
List all docker images
$ docker images2. List only those images who has none substring in information
$ docker images | grep none3. Print ID (3rd field) of the docker images who has none substring in their info.
$ docker images | grep none | awk '{print $3}'4. Remove the images who has none substring in their information.
$ docker rmi -f (docker images | grep none | awk '{print $3}')5. Free disk taken by docker images, volume etc.
docker system prune --allLast updated
Was this helpful?