How do I get a docker image?



  • Man page for docker pull

    Images are automatically pulled when you install a container, you can specially use the docker pull command to get the image you require as well.

    The terminology used to get a docker image is called "pull". So to pull a docker image run:

    $ docker pull centos
    latest: Pulling from centos
    47d44cb6f252: Pull complete
    168a69b62202: Pull complete
    812e9d9d677f: Pull complete
    4234bfdd88f8: Pull complete
    ce20c473cd8a: Pull complete
    centos:latest: The image you are pulling has been verified. Important: image verification is a tech preview feature and should not be relied on to provide security.
    Digest:
    

    Display docker images (truncated output)

    $ docker images
    REPOSITORY          TAG                 IMAGE ID            CREATED             VIRTUAL SIZE
    centos              latest              ce20c473cd8a        2 weeks ago         172.3 MB
    ubuntu/sinatra      v2                  45ce00c5c6df        4 months ago        318 MB
    ubuntu              14.04               fa81ed084842        4 months ago        188.3 MB
    

    The -a option to docker images will show intermediate images as well.


Log in to reply
 

© Lightnetics 2024