abiosoft / abiosoft/colima

Port forwarding does not work when using docker swarm

Aperta
#135 7 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Go
Stelle
30.8k
Fork
613
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Port forwarding works well when running containers. However, when using a stack in docker swarm, I cannot access it from my Mac.

To reproduce, here is the YAML (test.yml) file:

```yaml
version: '3.7'
services:
test:
image: nginx:1.21.5-alpine
ports:
- 80:80
```

To initialize a docker swarm I use `docker swarm init`. Afterwards, I create the stack with `docker stack deploy -c test.yml teststack1`

If I run `curl http://localhost` it does not fail to connect, but is stuck after initial connection.

This was tested with a fresh install today (`brew install colima`) and no custom settings.

Edit: YAML code highlighting

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.