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