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
You can use docker inspect .
docker inspect
For example:
CID=$(docker run -d -p 4321 base nc -lk 4321); docker inspect $CID