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