Tag: docker images

  • docker images

    docker images command list all docker images (blueprints) available on your server.

    root@ok:~# docker images
    REPOSITORY                     TAG                 IMAGE ID            CREATED             SIZE
    gcr.io/tensorflow/tensorflow   latest              04f0b1131389        9 months ago        1.13GB
    tensorflow/tensorflow          1.1.0               04f0b1131389        9 months ago        1.13GB
    root@ok:~# 
    
  • Docker Delete all images

    Before you can delete a docker image, you need to delete any container that is based on this image. So see how to delete all docker containers, see

    Delete all docker containers

    To list all available docker images, run

    docker images
    

    To just display image ID only, run with -q option

    docker images -q
    

    Now lets pass the result to docker rmi command using xargs

    docker images -q | xargs docker rmi
    

    This will delete all images. You can also use

    docker rmi $(docker images -q)
    

    See docker