ubuntu18.04安装Docker最简单的方法!

网友投稿 537 2022-12-01

ubuntu18.04安装Docker最简单的方法!

docker官方提供的参考​​官方的安装可能有点复杂,本章采用最简单的安装方式:安装Ubuntu维护的版本

1、检查Ubuntu的内核是否高于3.10,低于这个版本的内核不支持Docker

~$ uname -r5.0.0-31-generic

2、移除旧的Docker,从来没有安装过,可以跳过

~$ sudo apt-get remove docker.io

3、安装Docker

~$ sudo apt-get install docker.io

4、运行Hello World检验是否成功

~$ sudo docker run hello-worldHello from Docker!This message shows that your installation appears to be working correctly.To generate this message, Docker took the following steps: 1. The Docker client contacted the Docker daemon. 2. The Docker daemon pulled the "hello-world" image from the Docker Hub. (amd64) 3. The Docker daemon created a new container from that image which runs the executable that produces the output you are currently reading. 4. The Docker daemon streamed that output to the Docker client, which sent it to your terminal.To try something more ambitious, you can run an Ubuntu container with: $ docker run -it ubuntu bashShare images, automate workflows, and more with a free Docker ID: more examples and ideas, visit: sudo docker versionClient: Version: 18.09.7 API version: 1.39 Go version: go1.10.1 Git commit: 2d0083d Built: Fri Aug 16 14:20:06 2019 OS/Arch: linux/amd64 Experimental: falseServer: Engine: Version: 18.09.7 API version: 1.39 (minimum version 1.12) Go version: go1.10.1 Git commit: 2d0083d Built: Wed Aug 14 19:41:23 2019 OS/Arch: linux/amd64 Experimental: false

谢谢阅读!

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:使用Android Studio调试Cordova项目
下一篇:springboot controller无效的处理方案
相关文章

 发表评论

暂时没有评论,来抢沙发吧~