Closed Superhzf closed 1 year ago
Try changing this line
CMD [ "ws", "--port 30" ]
to this
CMD [ "ws", "--port", "30" ]
Try changing this line
CMD [ "ws", "--port 30" ]
to this
CMD [ "ws", "--port", "30" ]
Thank you so much for your quick reply, that works!
Now, in the docker it shows Listening on http://5f80a3af8967:30, http://127.0.0.1:30, http://172.17.0.2:30
. But I can only open the page with http://127.0.0.1:30
. http://5f80a3af8967:30
and http://172.17.0.2:30
are not loading up, is it normal? If I run without docker, all three sites work perfectly.
http://5f80a3af8967:30
andhttp://172.17.0.2:30
are not loading up, is it normal? If I run without docker, all three sites work perfectly.
it could be normal - i don't know how you have networking/routing/DNS/WIN etc set up on your machine or container.. Closing as beyond the scope of ws..
Hi there,
This works fine locally. However, when I try to move it into a docker container, the server cannot find the correct port. My docker file looks like this:
Then, if I run
docker run -dp 30:30 frontend-server
, and thendocker logs -f <container-id>
it showsListening on http://8ab29995624f:null, http://127.0.0.1:null, http://172.17.0.2:null
. I expectnull
to be30
.