首页 > 其他 > 详细

docker-compose 常见问题

时间:2021-04-05 17:28:08      阅读:23      评论:0      收藏:0      [点我收藏+]

WARNING: Found orphan containers (toolbox-web) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up.

描述

多个yml文件在一个文件夹下,默认认为是一个项目,使用docker-compose -f movie-web.yml up --force-recreate --build -d 命令报出

目录
  • movie-web.yml
  • toolbox-web.yml

https://docs.docker.com/compose/reference/overview/

# 指定文件更新容器是
docker-compose -f movie-web.yml up --force-recreate --build -d
# 多个yml文件在一个文件夹下  默认认为是一个项目  警告报出
WARNING: Found orphan containers (toolbox-web) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up.

Recreating movie-web ... done
# 解决方法 -p movie 设置项目名 
docker-compose -f movie-web.yml -p movie up --force-recreate --build -d

Creating movie-web ... done

docker-compose 常见问题

原文:https://www.cnblogs.com/linyisonger/p/14618425.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!