Skip to content

Instantly share code, notes, and snippets.

@tmc
Last active June 15, 2017 19:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tmc/5d03306e71a40c13eef7d16880ab7c2c to your computer and use it in GitHub Desktop.
Save tmc/5d03306e71a40c13eef7d16880ab7c2c to your computer and use it in GitHub Desktop.
allow control of DOCKER_API_VERSION in circleci 2.0 local build script
--- /usr/local/bin/circleci-orig 2017-06-15 12:52:44.000000000 -0700
+++ /usr/local/bin/circleci 2017-06-15 12:56:17.000000000 -0700
@@ -133,6 +133,7 @@
fi
docker run -it --rm \
+ -e DOCKER_API_VERSION=${DOCKER_API_VERSION:-1.23} \
-v /var/run/docker.sock:/var/run/docker.sock \
-v $(pwd):$(pwd) \
-v ~/.circleci/:/root/.circleci \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment