This can be done by executing the following command:
docker inspect <container id> | grep "IPAddress"
You can also use the --format option of inspect to do this:
docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' container_name_or_id