root@iZm5e85x7l9b634qjg73hsZ:~# history 1 ls 2 sudo apt-get update 3 sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common 4 curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - 5 sudo apt-key fingerprint 0EBFCD88 6 sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" 7 sudo apt-get update 8 sudo apt-get install docker-ce 9 sudo systemctl enable docker 10 sudo systemctl start docker 11 sudo curl -L https://github.com/docker/compose/releases/download/1.23.1/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose 12 sudo chmod +x /usr/local/bin/docker-compose 13 docker-compose --version 14 docker --version 15 history root@iZm5e85x7l9b634qjg73hsZ:~# docker-compose --version docker-compose version 1.23.1, build b02f1306 root@iZm5e85x7l9b634qjg73hsZ:~#
原文:https://www.cnblogs.com/52-qq/p/14812187.html