Get Docker Engine - Community for Ubuntu
Posted 汤姆啾
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Get Docker Engine - Community for Ubuntu相关的知识,希望对你有一定的参考价值。
Get Docker Engine - Community for Ubuntu
Uninstall old versions
$ sudo apt-get remove docker docker-engine docker.io containerd runc
$ sudo apt-get update
$ sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
$ sudo apt-key fingerprint 0EBFCD88
$ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
$ sudo apt-get update
$ sudo apt-get install docker-ce docker-ce-cli containerd.io
$ sudo docker run hello-world
...............
Hello from Docker!
...............
以上是关于Get Docker Engine - Community for Ubuntu的主要内容,如果未能解决你的问题,请参考以下文章