首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

docker-compose down

代码语言:javascript
复制
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的网络和卷从不删除。

扫码关注腾讯云开发者

领取腾讯云代金券