快捷安装
方法一
wget -qO- https://get.docker.com/ | bash
方法二
curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh
启动并设置默认开机
systemctl start docker
systemctl enable docker
docker-compose安装
REQUEST_URL=https://github.com/docker/compose/releases/download
curl -L "${REQUEST_URL}/1.24.1/docker-compose-$(uname -s)-$(uname -m)" \
-o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
评论区