You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
愿您有个好心情
07be2fbeee
|
2 years ago | |
---|---|---|
area-security-web | 2 years ago | |
service | 2 years ago | |
web | 2 years ago | |
.dockerignore | 2 years ago | |
.gitignore | 2 years ago | |
README.md | 2 years ago | |
docker-compose.yml | 2 years ago |
README.md
docker-compose 部署
militar-security 项目使用 docker-compose 部署文件
命令
-
编排容器
docker-compose up -d --build
-
打包镜像
docker save military-system:2.0 military-earth:2.0 military-web:2.0 -o military2.0.tar
-
导入镜像
docker load -i military.tar
-
启动容器
docker-compose -p #{项目名称} up -d
-
启动已经存在的服务容器启动容器
docker-compose start
-
停止容器
docker-compose stop
-
停止 up 命令所启动的容器,并移除网络
docker-compose down