docker 打包&生产配置
This commit is contained in:
15
buildImage
Normal file
15
buildImage
Normal 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
|
||||
Reference in New Issue
Block a user