devcontainers / devcontainers/features
`docker-from-docker`: processes inside the container can't access ports forwarded from the docker bridge network
- Lingua principale
- Shell
- Stelle
- 1.5k
- Fork
- 621
- Merge medio
- 6g 53m
- PR unite (30g)
- 9
Descrizione
When running `docker-from-docker`, if a container maps a port to the bridge network, I'd expect to be able to open another terminal and hit that port. Instead, the port is exposed outside of the dev container, but remains inaccessible _inside_ of it, which breaks development setups that mix dockerized and non-dockerized services. Here's a [minimal reproduction](https://github.com/davidwallacejackson/devcontainer-port-repro).
I saw this bug using:
Host: macOS 12.3.1
Visual Studio Code: 1.71.2
Docker Host: Desktop 4.12.0, Engine 20.10.17
Remote Containers Extension: v0.252.0
Port forwarding works as expected both inside and outside of the container when using `docker-in-docker` instead of `docker-from-docker`.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia con la riproduzione minima collegata e riproduci il problema usando la feature docker-from-docker con le versioni indicate di Docker e devcontainer. Confronta il comportamento delle porte con docker-in-docker, quindi traccia la configurazione di rete della feature. Il lavoro è completo quando una porta mappata sul bridge network è raggiungibile sia da un altro processo all’interno del dev container sia dall’esterno.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- docker
- Ambito
- devops, networking
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100