Created
July 4, 2014 14:00
-
-
Save alexandernilsson/1e4ea85099196b2787ec to your computer and use it in GitHub Desktop.
Hack to read exposed ports from container options in deimos
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
inner = inner_ports(image) | |
if inner == []: | |
log.info("no port exposed in image, looking for --expose") | |
for i, opt in enumerate(options): | |
if opt == "--expose": | |
log.info("found " + opt) | |
inner = [int(options[i+1])] | |
break | |
port_pairings = list(itertools.izip_longest(ports, inner)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Replace line 21 in deimos/docker.py with this.