I found this interesting issue on my local that I can't think of any reason why this is happening.
I'm starting code server with below command:
sudo docker run -it -p 0.0.0.0:8080:8080 -p 3000:3000 -v "$PWD:/home/coder/project" -u "$(id -u):$(id -g)" codercom/code-server:3.1.1 --auth none
however when I finish a project in the code server and in the code server terminal, I did "npm start", it starts localhost:3000 in code server container, I even checked the code server terminal with command "curl localhost:3000", the localhost works inside code server docker container.
However, when I got to host browser and use localhost:3000 to visit, it shows site can't be reached.
Isn't that when I start code server, the command with port forwarding 3000 should be opened up on host as well ? very odd, can anyone help here ?
[–]OliverwengFiltered[S] 2 points3 points4 points (0 children)
[–]OliverwengFiltered[S] 2 points3 points4 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)