docker 打包&生产配置

This commit is contained in:
limqhz
2022-05-14 02:56:22 +08:00
parent a5fa8ba4a2
commit 12ff775d36
4 changed files with 27 additions and 3 deletions

15
buildImage Normal file
View File

@@ -0,0 +1,15 @@
-- 修改docker镜像为阿里云镜像 docker-engine增加
"registry-mirrors": [
"https://6kx4zyno.mirror.aliyuncs.com"
]
-- 编译docker镜像
docker build -t monitor/centos .
-- 导出docker镜像
docker save monitor/centos > monitor.tar
-- 导入docker镜像
docker load --input monitor.tar
-- 运行docekr镜像
docker run -p 8088:8088 -d monitor/centos:latest