Is there a command I can run to get the container\'s IP address right from the host after a new container is created?
Basically, once Docker creates the container, I
Here's a quick working answer:
Get your container name or ID:
docker container ls
Then get the IP:
docker inspect |grep 'IPAddress'
Get the port:
docker inspect |grep 'Port'