上命令
sudoapt-getupdate
sudoapt-get-yinstall\apt-transport-https\ca-certificates\curl\gnupg-agent\software-properties-common
curl-fsSLhttps://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudoapt-keyfingerprint0EBFCD88
sudoadd-apt-repository\"deb [arch=amd64] https://download.docker.com/linux/ubuntu \$(lsb_release -cs) \stable"
sudoapt-getupdate
sudoapt-get-yinstalldocker-cedocker-ce-clicontainerd.io
//验证是否安装成功!
sudodockerrunhello-world
docker-compose
sudoapt-get-yinstalldocker-compose