docker客戶端安裝拉取私有倉庫指令碼

weixin_34320159發表於2017-07-20

#!/bin/bash

yum install rpm -y

rpm -Uvh http://ftp.riken.jp/Linux/fedora/epel/6Server/x86_64/epel-release-6-8.noarch.rpm

yum clean all &&  yum list

yum install -y docker-io

cat >>/etc/docker/daemon.json<<EOF

{

"registry-mirrors": ["10.32.4.102:5000"],

}

EOF

#quchu https

sed -i 's/other_args=/other_args="--insecure-registry 10.32.4.102:5000"/g' docker

service docker start

相關文章