docker-compose 部署不支持deploy
docker-compose up 启动
提示如下:
WARNING: Some services (web) use the 'deploy' key, which will be ignored. Compose does not support 'deploy' configuration - use `docker stack deploy` to deploy to a swarm.
简单说就是不支持deploy节点配置,导致内存限制大小/cpu限制都无法生效。
解决办法
docker-compose --compatibility up
标签:地址:https://www.leftso.com/article/949.html