1
0
mirror of /repos/baseimage-docker.git synced 2026-02-27 17:41:59 +01:00

Merge pull request #93 from qerub/ipaddress

Use Go template instead of grep to extract container IP address
This commit is contained in:
Hongli Lai
2014-06-17 14:40:05 +02:00

View File

@@ -314,7 +314,7 @@ Find out the ID of the container that you just ran:
Once you have the ID, look for its IP address with: Once you have the ID, look for its IP address with:
docker inspect <ID> | grep IPAddress docker inspect -f "{{ .NetworkSettings.IPAddress }}" <ID>
Now SSH into the container as follows: Now SSH into the container as follows:
@@ -352,7 +352,7 @@ Find out the ID of the container that you just ran:
Once you have the ID, look for its IP address with: Once you have the ID, look for its IP address with:
docker inspect <ID> | grep IPAddress docker inspect -f "{{ .NetworkSettings.IPAddress }}" <ID>
Now SSH into the container as follows: Now SSH into the container as follows: