Browse Source

chg: ``cached_cmd_on_image`` is now using ``/bin/sh`` rather than ``/bin/bash`` for supporting alpine images

hostresources
Valentin Lab 5 years ago
parent
commit
f07433b742
  1. 2
      bin/compose-core

2
bin/compose-core

@ -366,7 +366,7 @@ cached_cmd_on_image() {
return 0
fi
shift
out=$(docker run -i --rm --entrypoint /bin/bash "$image_id" -c "$*") || return 1
out=$(docker run -i --rm --entrypoint /bin/sh "$image_id" -c "$*") || return 1
echo "$out" | tee "$cache_file"
}
export -f cached_cmd_on_image

Loading…
Cancel
Save