首页 > 解决方案 > 运行 docker stack deploy 只是挂起

问题描述

我正在尝试将我的docker-compose设置运行到我的 localhost kubernetes 集群中,该集群默认使用 Docker for Desktop。

我运行以下命令,它只是..挂起???

> docker stack deploy --orchestrator=kubernetes -c docker-compose.yml hornet

Ignoring unsupported options: build

Ignoring deprecated options:

container_name: Setting the container name is not supported.

expose: Exposing ports is unnecessary - services on the same network can access each other's containers on any port.

top-level network "backend" is ignored
top-level network "frontend" is ignored
service "website.public": network "frontend" is ignored
service "website.public": container_name is deprecated
service "website.public": build is ignored
service "website.public": depends_on are ignored
....
<snip> heaps of services 'ignored'
....

Waiting for the stack to be stable and running...

docker-compose up当我运行该命令时,该命令在本地运行良好。

有什么方法可以尝试看看引擎盖下发生了什么,这会挂起这个吗?

标签: dockerkubernetes

解决方案


推荐阅读