Open AnhQuanTrl opened 9 months ago
It seems like forwardPorts
only work with VSCode. I think the doc can be improved a bit so that folks are aware of this. In the meantime, I will just use the good old ports
mapping of docker-compose file :)
Hi @AnhQuanTrl , thanks for reporting the issue! I think you've hit a missing feature of DevPod with the combination of docker compose name:port
syntax. We'll fix this
Same issue here with errors like "Error port forwarding 80: listen tcp 127.0.0.1:80: bind: permission denied". Is there a way to make this work?
hey @erikpb, that's because you need root permissions to bind to port 80 on your host machine. Using another port > 1000 should work
Also not working for me with vscode and local docker forwarding port 8000. VSCode shows port being forwarded but I cannot see any port-mapping in the docker dashboard.
What happened?
I could not access a forwarded port from a postgres container using docker-compose and devpod.
What did you expect to happen instead?
I should be able to access the forwarded port (5432) at localhost.
How can we reproduce the bug? (as minimally and precisely as possible)
My
devcontainer.json
:My
docker-compose.devcontainer.yml
:devcontainer.Dockerfile
is justFROM mcr.microsoft.com/devcontainers/javascript-node
.Local Environment:
DevPod Provider:
Anything else we need to know?
I can access the db with port 5432 inside the app container. However, I cannot access the db using port forward from the host. I also don't use VSCode, if that helps. I just install neovim directly inside the workspace container.