目錄docker
本文章在centos7.6系統操做shell
# yum install docker-distribution
[root@test yum.repos.d]# cat /etc/docker-distribution/registry/config.yml version: 0.1 log: fields: service: registry storage: cache: layerinfo: inmemory filesystem: rootdirectory: /var/lib/registry //對應的倉庫目錄 http: addr: :5000 //倉庫端口號
將拿到的倉庫image文件解壓到 /var/lib/registry/ 目錄下 這個目錄應與上面配置文件的目錄一致。目錄結構以下:json
/var/lib/registry/docker/registry/v2/xxxxxvim
# systemctl start docker-distribution
vim /etc/docker/daemon.json { "enable-secrets": false, "insecure-registries": ["192.168.10.12:5000"] }
# docker pull 192.168.1.13:5000/ustackqueens/centos-binary-cinder-api:20180723 // docker pull <倉庫ip>:<端口號>/<路徑>:<tag>