创建与运行商城各大系统Docker容器_Docker容器化部署
一、依次运行如下命令,创建运行各大系统Docker容器1、执行命令:
docker run -d -p 9004:80 --name octadvertisersystemweb_publish_con registry.cn-hangzhou.aliyuncs.com/octshop/octadvertisersystemweb_publish_mirr:v3
2、执行命令:
docker run -d -p 9005:80 --name octaftersaleacccussystemweb_publish_con registry.cn-hangzhou.aliyuncs.com/octshop/octaftersaleacccussystemweb_publish_mirr:v3
3、执行命令:
docker run -d -p 9009:80 --name octcmssystemweb_publish_con registry.cn-hangzhou.aliyuncs.com/octshop/octcmssystemweb_publish_mirr:v3
4、执行命令:
docker run -d -p 9000:80 --name octcommoncodesystemweb_publish_con registry.cn-hangzhou.aliyuncs.com/octshop/octcommoncodesystemweb_publish_mirr:v3
5、执行命令:
docker run -d -p 9006:80 --name octfileuploadsystemweb_publish_con registry.cn-hangzhou.aliyuncs.com/octshop/octfileuploadsystemweb_publish_mirr:v3
6、执行命令:
docker run -d -p 9011:80 --name octmallappweb_publish_con registry.cn-hangzhou.aliyuncs.com/octshop/octmallappweb_publish_mirr:v3
7、执行命令:
docker run -d -p 9010:80 --name octmallminiweb_publish_con registry.cn-hangzhou.aliyuncs.com/octshop/octmallminiweb_publish_mirr:v3
8、执行命令:
docker run -d -p 9008:80 --name octshopsystemweb_publish_con registry.cn-hangzhou.aliyuncs.com/octshop/octshopsystemweb_publish_mirr:v3
9、执行命令:
docker run -d -p 9003:80 --name octthirdapicallsystemweb_publish_con registry.cn-hangzhou.aliyuncs.com/octshop/octthirdapicallsystemweb_publish_mirr:v3
10、执行命令:
docker run -d -p 9002:80 --name octtradingsystemweb_publish_con registry.cn-hangzhou.aliyuncs.com/octshop/octtradingsystemweb_publish_mirr:v3
11、执行命令:
docker run -d -p 9001:80 --name octusergoodsshopsystemweb_publish_con registry.cn-hangzhou.aliyuncs.com/octshop/octusergoodsshopsystemweb_publish_mirr:v3
12、执行命令:
docker run -d -p 9007:80 --name octwapweb_publish_con registry.cn-hangzhou.aliyuncs.com/octshop/octwapweb_publish_mirr:v3
运行命令:【docker ps -a 】查看所有项目Docker容器是否创建运行成功,如下图:

二、从Docker容器中复制出各项目的文件,依次运行如下命令
1、在Linux系统根目录下,创建项目文件承载文件夹,并赋【读写权限】
定位到系统根目录,运行命令【mkdir OctMallAllWeb】创建文件夹OctMallAllWeb
运行命令【chmod -R 777 OctMallAllWeb】赋读写权限。
2、定位到 OctMallAllWeb 文件夹下
运行命令:【 cd OctMallAllWeb 】
3、正式从docker容器中复制各项目文件到 OctMallAllWeb 文件夹,依次运行如下命令
docker cp octadvertisersystemweb_publish_con:/octshop/OctAdvertiserSystemWeb /OctMallAllWeb
docker cp octaftersaleacccussystemweb_publish_con:/octshop/OctAfterSaleAccCusSystemWeb /OctMallAllWeb
docker cp octcmssystemweb_publish_con:/octshop/OctCmsSystemWeb /OctMallAllWeb
docker cp octcommoncodesystemweb_publish_con:/octshop/OctCommonCodeSystemWeb /OctMallAllWeb
docker cp octfileuploadsystemweb_publish_con:/octshop/OctFileUploadSystemWeb /OctMallAllWeb
docker cp octmallappweb_publish_con:/octshop/OctMallAppWeb /OctMallAllWeb
docker cp octmallminiweb_publish_con:/octshop/OctMallMiniWeb /OctMallAllWeb
docker cp octshopsystemweb_publish_con:/octshop/OctShopSystemWeb /OctMallAllWeb
docker cp octthirdapicallsystemweb_publish_con:/octshop/OctThirdApiCallSystemWeb /OctMallAllWeb
docker cp octtradingsystemweb_publish_con:/octshop/OctTradingSystemWeb /OctMallAllWeb
docker cp octusergoodsshopsystemweb_publish_con:/octshop/OctUserGoodsShopSystemWeb /OctMallAllWeb
docker cp octwapweb_publish_con:/octshop/OctWapWeb /OctMallAllWeb
运行命令:[ cd .. ] 回到系统根目录
再次运行:【chmod -R 777 OctMallAllWeb】赋读写权限。

上一步:安装Docker和拉取各项目系统镜像_Docker容器化部署
下一步:挂载宿主机目录到各系统Docker容器中_Docker容器化部署