You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
740 B
13 lines
740 B
3 years ago
|
#!/bin/bash
|
||
|
sudo apt-get update
|
||
|
sudo apt-get -y install apt-transport-https ca-certificates curl software-properties-common make
|
||
|
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 -y update
|
||
|
sudo apt-get -y install docker-ce
|
||
|
sudo usermod -a -G docker $USER
|
||
|
|
||
|
sudo bash -c 'curl -sSL http://mirrors.aliyun.com/docker-toolbox/linux/compose/1.15.0/docker-compose-Linux-x86_64 > /usr/local/bin/docker-compose && chmod +x /usr/local/bin/docker-compose'
|
||
|
curl -sSL https://get.daocloud.io/daotools/set_mirror.sh | sudo sh -s https://registry.docker-cn.com
|
||
|
sudo service docker restart
|