Skip to content

Instantly share code, notes, and snippets.

@agbaraka
Last active March 20, 2018 08:13
Show Gist options
  • Save agbaraka/f2082023cf5c9bfd3fa0d4276fbf95a4 to your computer and use it in GitHub Desktop.
Save agbaraka/f2082023cf5c9bfd3fa0d4276fbf95a4 to your computer and use it in GitHub Desktop.
Adding Docker Compose in CoreOS using Docker
function docker-compose() {
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -v "$PWD:/rootfs/$PWD" -w="/rootfs/$PWD" docker/compose:1.16.1 "$@"
}
#export docker-compose() to make it available in bash shell and scripts
export -f docker-compose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment