Centos7利用Docker配置Splash
2019-05-22 本文已影响0人
Rumple
一、安装docker
yum -y update
#安装依赖
yum install -y yum-utils device-mapper-persistent-data lvm2
#设置源
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum -y install docker-ce
#开机启动
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
二、设置docker镜像
mkdir /etc/docker
vim /etc/docker/daemon.json
{
"registry-mirrors": ["http://hub-mirror.c.163.com"]
}
systemctl restart docker
三、安装&运行splash
docker pull scrapinghub/splash
docker run -d -p 8050:8050 scrapinghub/splash