Closed luiztauffer closed 4 years ago
Inside docker container you can still access it as localhost:80... or 127.0.0.1:80 and outside container it will be your host:5000 or localhost:5000
For better support please post your questions related to Clara sdk/aiaa on nvidia blogs
thank you for the prompt response @SachidanandAlle but outside the container it is not on localhost:5000, it is on 172.17.0.2 That's what I want to fix. I'm running with all the default options
@YuanTingHsieh ^^
i verified.. i can access outside container (the host machine) using localhost, 127.0.01 I guess you can check port mapping
docker run --runtime=nvidia -it --rm -v /home/<username>/tlt-experiments:/workspace/tlt-experiments $dockerImage start_aas.sh
In your command I don't see you have mapped your port...
You need something like -p 5678:80 -p 5679:443
or --net=host
to map the container port to outside host..
https://docs.docker.com/config/containers/container-networking/
FYI: 172.17.0.2 is the virtual IP Address of your docker container.. I guess you should go through docker insights... it's always helpful.
https://docs.nvidia.com/clara/tlt-mi/clara-train-sdk-v3.0/aiaa/installation.html
There is NOTE..
When you run docker, make sure you have docker ports (e.g. http-port: 80) mapped to host machine for external access. You can do that with docker option -p [LOCAL_PORT]:[REMOTE_PORT]. The local port is the host port you want to use while the remote port is the port which AIAA listen to inside the docker container (80 for HTTP, 443 for HTTPS).
Hi, I can't make the AI-AA server run on localhost. Instead, it gets automatically allocated at 172.17.0.2
When running:
I get the warning:
Here's the full track:
How can I fix this?
I tried the solutions proposed here (which are similar to suggestions from many other places): https://askubuntu.com/questions/329323/problem-with-restarting-apache-2 The warning message changes, but the container is still accessible only through
172.17.0.2
, I want it to be exposed on localhost:5000