docker using mirrored (mirror docker command)

1, lists the mirror list

    [root@localhost ~]# docker images

    image.png

        Option Description:

            REPOSITORY: represents the repository of the source image

            TAG: Mirror labels

            IMAGE ID: ID mirroring

            CREATED: image creation time

            SIZE: the size of the mirror

            With a warehouse source can have multiple TAG, on behalf of the warehouse source different versions, such as ubuntu warehouse sources, there are several different versions 15.10,14.04, etc., we use REPOSITORY: TAG to define different image. If you do not specify a mirrored version of the label, docker default latest image


2, get a new image

    [root@localhost ~]# docker pull ubuntu:13.10

3. Find a mirror

        You can search image from Docker Hub website, Docker Hub's Web site is: https://hub.docker.com/

        You can also use docker search command to search for images, such as httpd we need a mirror image, can be searched by docker search command

         [root@localhost ~]# docker search httpd

         image.png

            Parameter Description

                NAME: The name of the mirror warehouse

                DESCRIPTION: mirroring description

                stars: Similar Github in the star, represents the thumbs up meaning

                AUTOMATED: automatically build



4, pulling them mirroring

     We decided to use the official version of httpd mirror image above, download the image using a docker pull

    [root@localhost ~]# docker pull httpd


5, remove the mirror

    [root@localhost ~]# docker rmi httpd


Guess you like

Origin blog.51cto.com/13520761/2478885