天天看点

Centos7下Docker上部署WebERP系统

1.docker安装和启动

wget https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo -O /etc/yum.repos.d/docker-ce.repo
yum install docker-ce -y
systemctl start docker
systemctl enable docker
systemctl status docker
           

2.配置镜像加速器

针对Docker客户端版本大于 1.10.0 的用户

您可以通过修改daemon配置文件/etc/docker/daemon.json来使用加速器

sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<-'EOF'
{
  "registry-mirrors": ["https://780urbjd.mirror.aliyuncs.com"]
}
EOF
sudo systemctl daemon-reload
sudo systemctl restart docker           

3.拉取.启动.进入镜像

docker pull systemsector/weberp:latest

Centos7下Docker上部署WebERP系统

docker run -i -t -p 80:80 systemsector/weberp:latest /bin/bash

目前系统无法后台运行.退出容器会导致系统无法使用

Centos7下Docker上部署WebERP系统

4.打开系统页面(输入公网ip)

用户名admin 密码password

Centos7下Docker上部署WebERP系统
Centos7下Docker上部署WebERP系统