For system, network and cloud administrators
In order to view the IP of a Docker container, you can execute the following command:
docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' container-ID-or-name
In the process of building a Docker image, you might find yourself in the situation where a “none” image is dangling in your Docker registry, as seen below:
In order to remove the “none” Docker images, you can use:
docker rmi -f $(docker images --filter "dangling=true" -q --no-trunc)