Skip to content

Instantly share code, notes, and snippets.

@LeonDevLifeLog
Last active September 20, 2018 13:53
Show Gist options
  • Save LeonDevLifeLog/3b62f2286edaffa39efe8983c97fbd9d to your computer and use it in GitHub Desktop.
Save LeonDevLifeLog/3b62f2286edaffa39efe8983c97fbd9d to your computer and use it in GitHub Desktop.

just copy and paste

sudo sh -c "$(curl -fsSL https://gist.githubusercontent.com/LeonDevLifeLog/3b62f2286edaffa39efe8983c97fbd9d/raw/25f002762f50cb21a7caa7e36c8a12d24aa72470/init_ubuntu.sh)"
#!/bin/bash
# install docker ce
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common -y
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
# in china
# curl -fsSL http://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add -
# sudo add-apt-repository "deb [arch=amd64] http://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
sudo apt-get install docker-ce -y
#install docker-compose
sudo curl -L "https://github.com/docker/compose/releases/download/1.22.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
# install oh my zsh
sudo apt-get install git zsh -y
sudo sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment