Docker Warehouse Use

Source: Internet
Author: User
Tags docker run
Docker Public Mirror Market

https://hub.docker.com/
Warehouses (Repository) are places where images are centrally stored, divided into public warehouses and private warehouses. The registration service is the specific server that holds the warehouse, a registration service can have multiple warehouses, and each warehouse can have multiple mirrors. For example, warehouse address Private-docker.com/ubuntu, private-docker.com is the registered server address, Ubuntu is the warehouse name. Speed Cloud Mirror Market (home-provided Docker mirror market)

https://www.tenxcloud.com/
Https://dev.aliyun.com/list.html (Ali)

Docker Pull Index.tenxcloud.com/docker_library/node:latest
Docker Pull index.tenxcloud.com/docker_library/registry:0.8.1
Docker tag Index.tenxcloud.com/docker_library/node:latest node:latest to build a private warehouse

Create a private warehouse using a registry image
Docker run-d-P 5000:5000 Registry
This will automatically download and launch a registry container to create a local private warehouse service. By default, the warehouse is created in the container's/tmp/registry directory.

Docker run-d-P 5000:5000-v/opt/data/registry:/tmp/registry Registry
The image file is stored locally on the specified path, at which point a private warehouse server is started locally, with a listening port of 5000. Manage Private Warehouses

Docker images
Modify a Label
Docker tag ubuntu:14.04 127.0.0.1:5000/test
Docker images
Upload it to a private warehouse.
Docker Push 127.0.0.1:5000/test
Whether the query was uploaded successfully
Curl Http://127.0.0.1:5000/v1/search

Setting does not check certificates
dcoker_opts= "–insecure-registry 127.0.0.1:5000"
Restart
sudo service docker restart
Download images from a private repository
Docker Pull 127.0.0.1:5000/test

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.