
Var features = app. And when it comes to this section: // Get server IP address docker exec -it 2e23d01384ac bash That drops you into a bash shell then use the ip command to grab the addr root2e23d01384ac:/ ip add grep global inet 172.17.0. A tool to get docker host ip or docker-container ip address. Because the IP addresses change on any container startup I can't just hard-code it into the appsettings.json. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company. I try to register my container to a Consul server which is hosted on the Docker host (not as a container) and I need to get the container IP address on startup to make the registration.

What is the best way to get the current docker container IP address within the container itself using.
