Skip to content

Instantly share code, notes, and snippets.

@ishu3101
Created October 13, 2018 22:15
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 ishu3101/d0f83bc0990d4c9a00cbe05a6d43bcf9 to your computer and use it in GitHub Desktop.
Save ishu3101/d0f83bc0990d4c9a00cbe05a6d43bcf9 to your computer and use it in GitHub Desktop.
Install Nanobox and Docker CE on Ubuntu 18.04
# Script to install nanobox and docker-ce
# install Nanobox
curl -SL https://d1ormdui8qdvue.cloudfront.net/installers/v2/linux/nanobox_2_amd64.deb -o nanobox_2_amd64.deb
sudo dpkg -i nanobox_2_amd64.deb
# install docker ce
# Environment variables you need to set so you don't have to edit the script below.
export DOCKER_CHANNEL=edge
export DOCKER_COMPOSE_VERSION=1.21.0
# Update the apt package index.
sudo apt-get update
# Install packages to allow apt to use a repository over HTTPS.
sudo apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
software-properties-common
# Add Docker's official GPG key.
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
# Verify the fingerprint.
sudo apt-key fingerprint 0EBFCD88
# Pick the release channel.
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
${DOCKER_CHANNEL}"
# Update the apt package index.
sudo apt-get update
# Install the latest version of Docker CE.
sudo apt-get install -y docker-ce
# Allow your user to access the Docker CLI without needing root.
sudo usermod -aG docker $USER
# Install Docker Compose.
sudo curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose &&
sudo chmod +x /usr/local/bin/docker-compose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment