Created
August 14, 2020 00:53
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(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