Docker 17参考手册
撰写 | Compose
docker-compose down
Usage: down [options]
Options:
--rmi type Remove images. Type must be one of:
'all': Remove all images used by any service.
'local': Remove only images that don't have a custom tag
set by the `image` field.
-v, --volumes Remove named volumes declared in the `volumes` section
of the Compose file and anonymous volumes
attached to containers.
--remove-orphans Remove containers for services not defined in the
Compose file
停止容器并移除通过创建的容器,网络,卷和图像up
。
默认情况下,唯一删除的内容是:
- 在撰写文件中定义的服务容器
- 网络在
networks
撰写文件的部分中定义
- 默认网络(如果使用的话)
定义为external
的网络和卷从不删除。
fig, composition, compose, docker, orchestration, cli, down
撰写 | Compose相关
Docker 是一个开源的应用容器引擎,让开发者可以打包他们的应用以及依赖包到一个可移植的容器中,然后发布到任何流行的 Linux 机器上,也可以实现虚拟化。容器是完全使用沙箱机制,相互之间不会有任何接口。
主页 | https://docker.com/ |
源码 | https://github.com/docker/docker |
版本 | 17 |
发布版本 | 17.06 |