Home » Tip Bank » Web Development
  • Email Article
  • Comment on this Article
  • Share Article
    • Digg
    • del.icio.us
    • Newvine
    • furl
    • StumbleUpon
    • BlinkList
    • Newsvine
    • Magnolia
    • Facebook
    • Tailrank
    • Slashdot
    • Technorati
    • Google Bookmarks
    • Yahoo Favorites
    • Windows Live
    • Ask
Language: Web
Expertise: Intermediate
May 2, 2017

Retrieving Specific Information Using the Inspect Docker Command

You can specify the information you want to return by requesting a specific element. For example, to return the container's IP address, you should use this command:

$docker inspect -f '{{ range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' nostalgic_morse 

172.17.0.5
Octavia Anghel
 
Submit a Tip
Browse "Web Development" Tips
Browse All Tips
javascriptweekly.com
eloquentjavascript.net