Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

firebase serve in docker container not visible to host os

Running in a docker container with the ports 9005 available to the host os and when i run

firebase serve -p 9005

and then try to access this from the host os (windows)

using http://localhost:9005 I get an empty response

like image 837
graham Avatar asked Dec 24 '22 19:12

graham


1 Answers

to force firebase serve to be visible you have to specify it to force it to bind to the address 0.0.0.0 otherwise the bind defaults to localhost

so you need to run

firebase serve -p 9005 -o 0.0.0.0

Make sure that 9005 is exposed and published using the docker command line option -p

like image 178
graham Avatar answered Dec 28 '22 11:12

graham