Link to home
Start Free TrialLog in
Avatar of Varshini S
Varshini S

asked on

why docker command not returning IP address?

Following command Not returning any IP address it just returns an empty string

docker inspect --format '{{.NetworkSettings.Networks.nat.IPAddress}}' sql2
empty.PNG
Avatar of Shaun Vermaak
Shaun Vermaak
Flag of Australia image

Try
docker container inspect --format '{{.NetworkSettings.Networks.nat.IPAddress }}' sql2

Open in new window

Avatar of Varshini S
Varshini S

ASKER

Nope, i have got the empty string
What container are you running?
microsoft/mssql-server-windows-express:latest
Busy pulling
docker pull microsoft/mssql-server-windows-express
SOLUTION
Avatar of David Johnson, CD
David Johnson, CD
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
i have used the below command to connect to the network
docker network connect multi-host-network sql2
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial