Docker Note 2: Docker image Introduction

 

      Docker mirrored the official repository located on foreign servers, slow download time at home, but you can use mirroring the domestic market accelerators (such as Ali cloud accelerator) to increase the take-off speed.

      Docker official mirror the market, and can be automated with Gitlab or GitHub to build, and will generate Docker image uploaded to DockerHub.

      Google also has its own market Docker mirror (use a large number of applications in Kubernetes gcr mirroring), but the country is almost inaccessible. However, you can do transit through dockerhub.

 

 

1, Docker official

 

Docker's official website: https://www.docker.com/

Docker's official repository: https://hub.docker.com/

 

 

 

 

 

 

2, Docker image warehouse

 

 

Ali cloud images (also known as "Ali Baba open mirror sites")

      https://mirrors.aliyun.com        or        https://opsx.alibaba.com/mirror

 

     

Docker CE mirror source station using Help:

 

 

 

Tsinghua open source software mirror sites

      https://mirrors.tuna.tsinghua.edu.cn

    

Docker CE mirroring Help: https://mirrors.tuna.tsinghua.edu.cn/help/docker-ce/

Note: This offer is only mirroring Debian / Ubuntu / Fedora / CentOS / RHEL packages of docker, non dockerhub

 

Debian / Ubuntu users

The following modified from based on official documents.

docker If you have installed in the past, first delete:

sudo apt-get remove docker docker-engine docker.io  

First Installation depends:

sudo apt-get install apt-transport-https ca-certificates curl gnupg2 software-properties-common

According to your distribution, the following content is different. You use the release:  

Debian:

Trust Docker's GPG public key:
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
Amd64 architecture for the computer, add the repositories:
sudo add-apt-repository \
   "deb [arch=amd64] https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/debian \
   $(lsb_release -cs) \
   stable"
If you are a Raspberry Pi ARM architecture or other computer, run:
echo "deb [arch=armhf] https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/debian \
     $(lsb_release -cs) stable" | \
    sudo tee /etc/apt/sources.list.d/docker.list
Final installation
sudo apt-get update
sudo apt-get install docker-ce

 

Ubuntu:

Trust Docker's GPG public key:
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
Amd64 architecture for the computer, add the repositories:
sudo add-apt-repository \
   "deb [arch=amd64] https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/ubuntu \
   $(lsb_release -cs) \
   stable"
If you are a Raspberry Pi ARM architecture or other computer, run:
echo "deb [arch=armhf] https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/ubuntu \
     $(lsb_release -cs) stable" | \
    sudo tee /etc/apt/sources.list.d/docker.list
Final installation
sudo apt-get update
sudo apt-get install docker-ce

  

  

 

 

 

  

 

Guess you like

Origin www.cnblogs.com/morgan363/p/11770435.html