How to get a Docker container’s IP address from the host?

You can use docker container inspect command with –format option to get the docker container IP address from the host.

Syntax:

Example: