Skip to content

Instantly share code, notes, and snippets.

@urjitbhatia
Created August 14, 2020 00:53
Show Gist options
  • Save urjitbhatia/98ff9cf775f1b60171ec9b1277676086 to your computer and use it in GitHub Desktop.
Save urjitbhatia/98ff9cf775f1b60171ec9b1277676086 to your computer and use it in GitHub Desktop.
Fetch the ip address of a sibling container from a docker-in-docker run
$(docker inspect my-sibling-dind-container --format '{{ .NetworkSettings.IPAddress }}')
-- Make sure both run on the same "network" (bridge by default in most cases)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment