Docker 17
撰写 | Compose

docker-compose 束 | docker-compose bundle

docker-compose 包

Usage: bundle [options] Options: --push-images Automatically push images for any services which have a `build` option specified. -o, --output PATH Path to write the bundle file to. Defaults to "<project name>.dab".

从 Compose 文件生成分布式应用程序包( DAB )。

图像必须存储摘要,这需要与 Docker 注册表进行交互。如果没有为所有图像存储摘要,可以使用docker-compose pull或获取它们docker-compose push。捆绑时自动推送图像,通过--push-images。只有build指定选项的服务才会推送其图像。

fig, composition, compose, docker, orchestration, cli, bundle