Redhat下用docker安装易度
Ricky
posted @ 2017年5月05日 11:41
in Other
, 979 阅读
下载已有的yum包
rpm -qa | grep yum | xargs rpm -e --nodeps
rpm -qa | grep python-iniparse | xargs rpm -e --nodeps
rpm -qa | grep python-urlgrabber | xargs rpm -e --nodeps
安装yum
wget http://mirrors.163.com/centos/7/os/x86_64/Packages/python-iniparse-0.4-9.el7.noarch.rpm
wget http://mirrors.163.com/centos/7/os/x86_64/Packages/yum-3.4.3-150.el7.centos.noarch.rpm
wget http://mirrors.163.com/centos/7/os/x86_64/Packages/yum-metadata-parser-1.1.4-10.el7.x86_64.rpm
wget http://mirrors.163.com/centos/7/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.31-40.el7.noarch.rpm
wget http://mirrors.163.com/centos/7/os/x86_64/Packages/python-urlgrabber-3.10-8.el7.noarch.rpm
rpm -ivh *.rpm
添加CentOS源
wget http://mirrors.163.com/.help/CentOS7-Base-163.repo
export releasever="7"
export basearch="x86_64"
yum clean all
yum makecache
安装易度
ExecStart=/usr/bin/docker daemon -H fd:// --insecure-registry docker.easydo.cn:5000
docker run --privileged --rm=true --net=host --name=upgrade_host -e ETCD_PORT_4001_TCP=tcp://172.17.42.1:4001 -e SERVICE_ID=edodocs -e EDO_OPERATOR=0 -v /root/:/var/edo/console/host_root_home/ -v /etc/systemd/:/etc/systemd/ -v /var/docker_files/:/var/docker_files/ -v /var/docker_backup/:/var/docker_backup/ -v /var/docker_data/:/var/docker_data/ docker.easydo.cn:5000/console upgrade docker.easydo.cn:5000 x-release all
中途可以重新启动和暂停
docker start `docker ps -q -l` # restart it in the background
docker attach `docker ps -q -l` # reattach the terminal & stdin
docker pause d2e42201fab9
2023年12月19日 18:04
sdsdsdsdsdsd