File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ function build_image_override_file() {
134134}
135135
136136# Checks that a specific version of docker-compose supports cache_from
137- function docker_compose_supports_cache_from () {
137+ function docker_compose_supports_cache () {
138138 local version=" $1 "
139139 if [[ " $version " == 1* || " $version " =~ ^(2| 3)(\. [01])? $ ]] ; then
140140 return 1
@@ -216,7 +216,7 @@ function build_image_override_file_with_version() {
216216 fi
217217
218218 if [[ " $cache_from_amt " -gt 0 ]] ; then
219- if ! docker_compose_supports_cache_from " $version " ; then
219+ if ! docker_compose_supports_cache " $version " ; then
220220 echo " Unsupported Docker Compose config file version: $version "
221221 echo " The 'cache_from' option can only be used with Compose file versions 2.2 or 3.2 and above."
222222 echo " For more information on Docker Compose configuration file versions, see:"
You can’t perform that action at this time.
0 commit comments