Open codetalks-new opened 5 years ago
参考: 在 Ubuntu 下安装Docker
apt-get update && \ apt-get install -y apt-transport-https ca-certificates curl software-properties-common && \ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - && \ add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" && \ apt-get update && apt-get install -y docker-ce&& \ usermod -aG docker $USER && \ echo '{ "registry-mirrors": ["https://registry.docker-cn.com","http://hub-mirror.c.163.com"]}' > /etc/docker/daemon.json && \ systemctl restart docker
参考 Install Compose
sudo curl -L "https://github.com/docker/compose/releases/download/1.24.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose && sudo chmod +x /usr/local/bin/docker-compose
参考: 在 Ubuntu 下安装Docker