就是第一行的version: "3"和version: "3.1" 因为看到好多人写的不一样 [ol]version: "3" services: redis: image: redis:alpine ports: - "6379" networks: - frontend deploy: replicas: 2 update_config: parallelism: 2 delay: 10s restart_policy: condition: on-failure[/ol]复制代码 好多人, 区别, 代码
https://www.bookstack.cn/read/docker-handbook/docs-compose_v2v3.md https://docs.docker.com/compose/compose-file/compose-versioning/
tilm 发表于 2023-2-9 21:25 https://www.bookstack.cn/read/docker-handbook/docs-compose_v2v3.md https://docs.docker.com/compose/ ... 所以说 写 3 和 3.9都可以吗 有啥区别吗