Docker Swarm Services with IPv6
@avsm ci sta già lavorando.
Dal 16/5/2023.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
IPv6 does not work as expected with docker service deploy.
Using this trivial docker-compose.yml as an example.
version: "3.9"
services:
caddy:
image: caddy
ports:
- "80:80"
volumes:
- /etc/caddy:/etc/caddy:ro
nginx:
image: nginx
/etc/caddy/Caddyfile contains a reverse proxy definition like this:
:80 {
reverse_proxy nginx:80
}
Basic connectivity can be checked using using docker compose up and using curl http://<ipv4>:80 and curl http://<ipv6>:80, which both return the nginx default website.
After docker swarm init, the stack can be deployed using docker stack deploy --compose-file ./docker-compose.yml test. Connectivity tests on IPv6 now fail. IPv4 works as expected.
Updating /etc/docker/daemon.json by adding ipv6 and fixed-cidr-v6 as described here does not help.
The situation can be worked around by deploying the caddy image with host ports like this. Now, IPv4 and IPv6 connectivity work.
version: "3.9"
services:
caddy:
image: caddy
deploy:
mode: global
ports:
- target: 80
published: 80
protocol: tcp
mode: host
volumes:
- /etc/caddy:/etc/caddy:ro
nginx:
image: nginx
- Lingua principale
- HTML
- Stelle
- 42
- Fork
- 11
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Non abbiamo ancora controllato i file di configurazione di questo progetto. Parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di ocaml/infrastructure
-
503 on ocaml.org sometimesAperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 38/100
ocaml/infrastructure#192 · 3 commenti ·
-
opam.ci.ocaml.org 502sAperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
ocaml/infrastructure#190 · 5 commenti ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 38/100
ocaml/infrastructure#188 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
ocaml/infrastructure#181 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
ocaml/infrastructure#176 · 4 commenti ·