标签:wget SQ sysconf port use pad lin ble ali
本文介绍在内网环境下如果通过网络代理映射来完成docekr的安装,首先在能上网的windows机器上安装squid,并启动,本实例中windows机器IP为 192.168.192.101 ,squid服务端口为3128
1、登录进入redhat 7.2
2、依次执行如下语句
proxy=192.168.192.101:3128 echo "proxy=http://${proxy}" >>/etc/yum.conf echo "http_proxy=${proxy}" >>/etc/profile echo "export http_proxy" >>/etc/profile source /etc/profile #设置完成之后就能上网 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo sed -i ‘s/$releasever/7/g‘ /etc/yum.repos.d/CentOS-Base.repo yum clean all yum list yum -y install docker groupadd docker useradd -d /home/docker -m -g docker docker # passwd #设置密码 systemctl daemon-reexec systemctl start docker #如果启动这一步出错 vi /etc/sysconfig/docker OPTIONS=‘--selinux-enabled=false 设置成false
至此docker则安装完成。
标签:wget SQ sysconf port use pad lin ble ali
原文地址:https://www.cnblogs.com/befer/p/9107503.html