docker客户端安装拉取私有仓库脚本

#!/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<

{

"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

你可能感兴趣的:(docker客户端安装拉取私有仓库脚本)