1 Star 0 Fork 10

钢大木/full_container_station_scheme

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
交付docker脚本.txt 1.11 KB
一键复制 编辑 原始数据 按行查看 历史
铁锅焖面 提交于 2019-03-11 23:29 . 更新ucloud下载点
#!/bin/bash
#登录到目标机器创建脚本,chmod授权运行,注意需要设置私有镜像库IP与端口
#disable seliunx
sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config
yum -y install wget
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime;
systemctl stop firewalld.service;
systemctl disable firewalld.service;
firewall-cmd --state;
mkdir -p /data/
cd /data/;
wget http://docker-snake.cn-bj.ufileos.com/docker-engine-selinux-1.12.6-1.el7.centos.noarch.rpm;
wget http://docker-snake.cn-bj.ufileos.com/docker-engine-1.12.6-1.el7.centos.x86_64.rpm;
mkdir -p docker;
ln -s /data/docker /var/lib/docker;
yum -y install policycoreutils-python selinux-policy-base selinux-policy-targeted libseccomp libtool-ltdl device-mapper-libs;
rpm -ivh docker-engine-selinux-1.12.6-1.el7.centos.noarch.rpm
rpm -ivh docker-engine-1.12.6-1.el7.centos.x86_64.rpm
service docker start
tee /etc/docker/daemon.json <<-'EOF'
{"registry-mirrors": ["https://registry.docker-cn.com"],"insecure-registries":["私有镜像库IP:端口"],"log-driver": "json-file","log-opts": {"max-size":"5m"}}
EOF
service docker restart
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xbw1220/full_container_station_scheme.git
git@gitee.com:xbw1220/full_container_station_scheme.git
xbw1220
full_container_station_scheme
full_container_station_scheme
master

搜索帮助