Skip to content

Instantly share code, notes, and snippets.

@justmoon
Created March 10, 2015 02:20
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 justmoon/b4443526fa47d49acd8f to your computer and use it in GitHub Desktop.
Save justmoon/b4443526fa47d49acd8f to your computer and use it in GitHub Desktop.
Building and running a Docker container with access to the Docker daemon
# From https://github.com/docker/compose/pull/1005#issuecomment-76167052
TAG="docker-compose:$(git rev-parse --short HEAD)"
docker build -t "$TAG" .
docker run \
--rm \
--volume="/var/run/docker.sock:/var/run/docker.sock" \
-e "DOCKER_VERSIONS=all" \
-e "TAG=$TAG" \
--entrypoint="script/test-versions" \
"$TAG" \
--verbose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment