Docker安装
基础条件
64bit cpu
内核:3.10,支持 Groups Namespace
Docker双授权
ee:企业版
ce:社区版
安装命令
yum install -y python3
wget https://bootstrap.pypa.io/pip/3.5/get-pip.py
python3 get-pip.py
/usr/bin/python3 -m pip install --upgrade pip
pip3 install docker-compose
yum install -y yum-utils
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum-config-manager --enable docker-ce-nightly
yum install docker-ce docker-ce-cli
systemctl enable docker.service
systemctl start docker
docker run hello-world
使用代理
mkdir -p /etc/systemd/system/docker.service.d
vi /etc/systemd/system/docker.service.d/http-proxy.conf
[Service]
Environment="HTTP_PROXY=http://***.***.***:7282/" "HTTPS_PROXY=http://***.***.***:7282/"
systemctl daemon-reload
systemctl restart docker
评论抢沙发