安装docker最简单的方式
curl -s https://get.docker.io/ubuntu/ | sudo sh
# 检测是否有https,如果没有就安装一个 if [ ! -e /usr/lib/apt/methods/https ]; then apt-get update apt-get install -y apt-transport-https fi # 添加一个docker 源 echo deb https://get.docker.com/ubuntu docker main > /etc/apt/sources.list.d/docker.list # 给一个key apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9 # Install docker apt-get update apt-get install -y lxc-docker
时间: 2024-10-10 21:15:34