EnergonAI icon indicating copy to clipboard operation
EnergonAI copied to clipboard

Connection refused on docker exposed port

Open xgreat8 opened this issue 2 years ago • 1 comments

Problem If we docker run energonai like: docker run -ti --gpus all --rm --ipc=host -p 8010:8010 ... Then in container run: export PYTHONPATH=/workspace/colossal/inference/examples/bert energonai service init --config_file=/workspace/colossal/inference/examples/bert/bert_config.py The access to "http://localhost:8010/" got rejected.

Root cause server_host in configuration files was wrongly configured to "127.0.0.1". It should be set to "0.0.0.0". All config files should be updated. For example, the file examples/bert/bert_config.py: server_host = "127.0.0.1" => server_host = "0.0.0.0"

xgreat8 avatar Jul 31 '22 20:07 xgreat8

Thanks for your correction

dujiangsu avatar Aug 04 '22 11:08 dujiangsu