diff --git a/bin/compose b/bin/compose index ded9578..e37969f 100755 --- a/bin/compose +++ b/bin/compose @@ -289,7 +289,11 @@ cached_cmd_on_base_image() { } export -f cached_cmd_on_base_image - +image_exposed_ports_0() { + local image="$1" + docker inspect --format='{{range $p, $conf := .Config.ExposedPorts}}{{$p}}{{"\x00"}}{{end}}' "$image" +} +export -f image_exposed_ports_0 ## ## Generic