安裝Docker/Portainer on Ubuntu

安裝Docker

$ apt-get update -y
$ apt-get install -y curl
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
$ add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
$ apt-get install -y docker-ce

安裝Docker的GUI:portainer

$ docker run -d -p 9000:9000 --restart=always --name portainer -v /var/run/docker.sock:/var/run/docker.sock portainer/portainer

Last updated