mirror of
https://github.com/phusion/baseimage-docker.git
synced 2026-11-20 09:21:17 +00:00
Use Go template instead of grep to extract container IP address
This commit is contained in:
1 parent
93572a5698
commit
f445cafe03
1 file changed
+2
-2
@@ -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:
|
||||
|
||||
docker inspect <ID> | grep IPAddress
|
||||
docker inspect -f "{{ .NetworkSettings.IPAddress }}" <ID>
|
||||
|
||||
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:
|
||||
|
||||
docker inspect <ID> | grep IPAddress
|
||||
docker inspect -f "{{ .NetworkSettings.IPAddress }}" <ID>
|
||||
|
||||
Now SSH into the container as follows:
|
||||
|
||||
|
||||
Reference in new issue
Block a user