From f445cafe031e072d3891f796d5cc22d11a90e03d Mon Sep 17 00:00:00 2001 From: Christoffer Sawicki Date: Mon, 16 Jun 2014 14:19:53 +0200 Subject: [PATCH] Use Go template instead of grep to extract container IP address --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4ce0315..979fa71 100644 --- a/README.md +++ b/README.md @@ -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 | grep IPAddress + docker inspect -f "{{ .NetworkSettings.IPAddress }}" 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 | grep IPAddress + docker inspect -f "{{ .NetworkSettings.IPAddress }}" Now SSH into the container as follows: