谷歌云Ubuntu19.04安装Docker+Portainer用到的命令
一、安装Docker sudo apt install apt-transport-https ca-certificates curl software-properties-common 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 bionic test" sudo apt update sudo apt install docker-ce 二、检测Docker是否安装成功 docker -v 三、启动Docker及系统重启后能自动启动 systemctl start docker.service systemctl enable docker.service 四、安装Potainer docker volume create portainer_data docker run -d -p 9000:9000 --name portainer --restart always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer