Last active
August 29, 2015 14:26
-
-
Save dweomer/612a70de47a445e0650d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -x | |
export DOCKER_PREFIX=${DOCKER_PREFIX:-/usr/local} | |
export DOCKER_VERSION=${DOCKER_VERSION:-1.7.1} | |
export DOCKER_GID=${DOCKER_GID:-999} | |
export DOCKER_GROUP=${DOCKER_GROUP:-docker} | |
gosu root:root sh -xe << EOF | |
mkdir -p ${DOCKER_PREFIX}/bin | |
curl -sSL https://get.docker.com/builds/$(uname -s)/$(uname -i)/docker-${DOCKER_VERSION} > ${DOCKER_PREFIX}/bin/docker | |
groupadd -frg ${DOCKER_GID} ${DOCKER_GROUP} | |
chown -v root:${DOCKER_GROUP} ${DOCKER_PREFIX}/bin/docker | |
chmod -v +xs ${DOCKER_PREFIX}/bin/docker | |
usermod -aG ${DOCKER_GROUP} ${DOCKER_MEMBER} | |
docker --version | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment