(iii) Docker of the primary image

Source: Internet
Author: User
Tags docker hub docker registry

Where is the Docker Docker mirror to start? Docker mirrored query Docker mirror save location for mirrored pull fetch view local mirror list Delete local mirror remove all mirrors

start Docker first .

Service Docker start
where is the Docker mirror?

Like Maven, we can get Docker mirrors from some public Docker Registry, and we can build our own Docker registr, so far I haven't built my own Docker Registry, so the default is from Docker official Docker Hub (Https://index.docker.io) to get, and then save in our local. query for Docker mirrors

Docker Mirror query commands are simple, you need to know the name of the software you want to install, and then you can see the list of available resources

Docker Search Mirror Name

For example, you can try Docker search Nginx, note the value of the NAME property

pull of Docker mirrors

Needs to be based on the NAME attribute value in the Docker mirror, such as the picture above Nginx

Docker pull Mirror Name (value of Name property)
Docker pull Url/name (you can specify Docker Registry address)
Pull Mirror Save location

/var/lib/docker/image/overlay/repositories.json Mirrored Directory
/var/lib/docker/containers Store specific mirrors view a local mirror list

Docker images

To delete a local mirror

You may encounter situations where the corresponding container cannot be deleted, and-F will force the deletion

Docker RMI Mirror Id/repository
Docker rmi-f mirroring Id/repository
Remove all mirrors

-F will force deletion

Docker Rmi-f $ (Docker images)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.