We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7cb4555 commit 498b09eCopy full SHA for 498b09e
repo2docker/utils.py
@@ -70,15 +70,16 @@ def chdir(path):
70
71
def validate_and_generate_port_mapping(port_mappings):
72
"""
73
- Validate a list of port mappings and return a dictionary of port mappings
+ Validate a list of port mappings and return a dictionary of port mappings.
74
75
Args:
76
port_mappings (list): List of strings of format
77
`'host_port:container_port'` with optional tcp udp values and host
78
network interface
79
80
Returns:
81
- Dictionary of port mappings
+ Dictionary of port mappings in the format accepted by docker-py's
82
+ `containers.run()` method (https://docker-py.readthedocs.io/en/stable/containers.html)
83
84
Raises:
85
Exception on invalid port mapping
0 commit comments