VIEW FULL VERSION: Link
Subject: How to get params of docker run in container?
Content: hello, Generall, we run docker container like this: docker run -d -p host-ip:port:port --name container-name docker-image But how to get host-ip in -p param in internal of container? I want get host-ip in my code running as main progress in container, or could use shell comand to get it? Please help. Thanks! I didn't find the right solution from the Internet. Reference: https://forums.docker.com/t/how-to-get-params-of-docker-run-in-internal-of-container/41133 video explainer