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-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
yum -y install docker-ce docker-ce-cli containerd.io
systemctl start docker
docker version
systemctl enable docker
docker pull nmtan/chevereto:installer
docker images
mkdir -p /home/docker_data/chevereto/images
docker pull mysql:5.7.36
docker images
docker run -itd --name mysql-server -v /data/mysql/conf:/etc/mysql/conf.d -v /data/mysql/data:/var/lib/mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=root@guoyun mysql:5.7.36
docker ps
docker run -it --name chevereto -d \ --link mysql-server:mysql \ -p 8088:80 \ -v /home/docker_data/chevereto/images:/var/www/html/images \ -e "CHEVERETO_DB_HOST=100.42.178.15" \ -e "CHEVERETO_DB_USERNAME=root" \ -e "CHEVERETO_DB_PASSWORD=root@guoyun" \ -e "CHEVERETO_DB_NAME=CHEVERETO" \ -e "CHEVERETO_DB_PREFIX=chv_" \ nmtan/chevereto:installer
docker ps
打开浏览器,输入http://IP+8088 无法访问请查看防火墙或者安全组
本文系转载,前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。
本文系转载,前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。