Inspect container and filter by its property
docker inspect -f '{{ .NetworkSettings.IPAddress }}' container_name
Run a nginx container in a detached interactive terminal that maps the host port 8088 to the nginx webserver port and open a shell in the interactive terminal.
docker run -dit --name my-nginx -p 8088:80 nginx /bin/bash