一疾嗅、安裝docker
yum -y update
#安裝依賴
yum install -y yum-utils device-mapper-persistent-data lvm2
#設(shè)置源
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum -y install docker-ce
#開機(jī)啟動(dòng)
systemctl start docker
systemctl enable docker
#卸載舊版本
yum remove docker docker-common docker-selinux docker-engine
yum erase docker-common-2:1.12.6-68.gitec8512b.el7.centos.x86_64
二茴厉、設(shè)置docker鏡像
mkdir /etc/docker
vim /etc/docker/daemon.json
{
"registry-mirrors": ["http://hub-mirror.c.163.com"]
}
systemctl restart docker
三旧蛾、安裝&運(yùn)行splash
docker pull scrapinghub/splash
docker run -d -p 8050:8050 scrapinghub/splash
最后編輯于 :
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者