Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Install docker-compose in boot2docker 1.7.0+
# install bash
# todo how to make persistent bash?
tce-load -wi bash
# then to docker compose
# Download docker-compose to the permanent storage
echo 'Downloading docker-compose to the permanent VM storage...'
sudo mkdir -p /var/lib/boot2docker/bin
sudo curl -sL${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` -o /var/lib/boot2docker/bin/docker-compose
sudo chmod +x /var/lib/boot2docker/bin/docker-compose
sudo ln -sf /var/lib/boot2docker/bin/docker-compose /usr/local/bin/docker-compose
# Making the symlink persistent via
echo 'Writing to to make docker-compose available on every boot...'
cat <<SCRIPT | sudo tee -a /var/lib/boot2docker/ > /dev/null
# docker-compose
sudo ln -sf /var/lib/boot2docker/bin/docker-compose /usr/local/bin/docker-compose
sudo chmod +x /var/lib/boot2docker/
echo 'Launching docker-compose...'
docker-compose --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment