Skip to content

Instantly share code, notes, and snippets.

@arno608rw
Forked from tsaqib/install-docker-ubuntu1604.sh
Last active February 3, 2018 03:44
Show Gist options
  • Save arno608rw/f32a83b603962127f05c373d0927c3dd to your computer and use it in GitHub Desktop.
Save arno608rw/f32a83b603962127f05c373d0927c3dd to your computer and use it in GitHub Desktop.
Docker installation script for Ubuntu 16.04 (Xenial) on Azure
# Docker installation script for Ubuntu 16.04 (Xenial) on Azure
# Usage: execute sudo -i, first.
# wget -q -O - "$@" https://gist.githubusercontent.com/arno608rw/f32a83b603962127f05c373d0927c3dd/raw --no-cache | sh
# After running the script reboot and check whether docker is running.
apt-get update -y
apt-get upgrade -y
apt-get install -y apt-transport-https ca-certificates
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
apt-get update -y
apt-get install -y linux-image-extra-$(uname -r)
rm -f /etc/apt/sources.list.d/docker.list
su -c "echo 'deb https://apt.dockerproject.org/repo ubuntu-xenial main' >> /etc/apt/sources.list.d/docker.list"
apt-get update -y
apt-get purge lxc-docker
apt-cache policy docker-engine
apt-get update -y
apt-get install -y docker-engine
service docker start
apt install docker-compose git -y
git clone https://github.com/arno608rw/LEMP-docker-codeigniter-starter-kit.git LEMP-docker-codeigniter
cd LEMP-docker-codeigniter
docker-compose up -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment