码迷,mamicode.com
首页 > 其他好文 > 详细

fedora30平台安装docker 19.03

时间:2020-03-10 18:40:33      阅读:62      评论:0      收藏:0      [点我收藏+]

标签:hit   获取   一个   code   mmu   uil   class   pre   oca   

一,下载docker

1,说明:docker的打包对于fedora的支持很及时,

所以在fedora 30/31上都可以直接使用官方的rpm包

 

下载地址:

https://download.docker.com/linux/fedora/30/x86_64/stable/Packages/

 

2,下载docker所需的三个安装包到source目录

[root@localhost source]# wget https://download.docker.com/linux/fedora/30/x86_64/stable/Packages/containerd.io-1.2.13-3.1.fc30.x86_64.rpm
[root@localhost source]# wget https://download.docker.com/linux/fedora/30/x86_64/stable/Packages/docker-ce-19.03.7-3.fc30.x86_64.rpm
[root@localhost source]# wget https://download.docker.com/linux/fedora/30/x86_64/stable/Packages/docker-ce-cli-19.03.7-3.fc30.x86_64.rpm

 

说明:架构森林是一个专注架构的博客,地址:https://www.cnblogs.com/architectforest

         对应的源码可以访问这里获取: https://github.com/liuhongdi/

 说明:作者:刘宏缔 邮箱: 371125307@qq.com

 

二,预先安装docker所依赖的软件包

[root@localhost source]# yum install container-selinux
[root@localhost source]# yum install libcgroup

 

三,安装docker所需的三个软件包,注意按顺序:

[root@localhost source]# rpm -ivh containerd.io-1.2.13-3.1.fc30.x86_64.rpm 
[root@localhost source]# rpm -ivh docker-ce-cli-19.03.7-3.fc30.x86_64.rpm 
[root@localhost source]# rpm -ivh docker-ce-19.03.7-3.fc30.x86_64.rpm 

 

四,检查安装是否成功:查看docker的版本

[root@localhost source]# docker --version
Docker version 19.03.7, build 7141c19

[root@localhost docker]# docker version
Client: Docker Engine - Community
 Version:           19.03.7
 API version:       1.40
 Go version:        go1.12.17
 Git commit:        7141c19
 Built:             Wed Mar  4 01:23:24 2020
 OS/Arch:           linux/amd64
 Experimental:      false

Server: Docker Engine - Community
 Engine:
  Version:          19.03.7
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.12.17
  Git commit:       7141c19
  Built:            Wed Mar  4 01:22:00 2020
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.2.13
  GitCommit:        7ad184331fa3e55e52b890ea95e65ba581ae3429
 runc:
  Version:          1.0.0-rc10
  GitCommit:        dc9208a3303feef5b3839f4323d9beb36df0a9dd
 docker-init:
  Version:          0.18.0
  GitCommit:        fec3683

 

五,查看本地fedora的版本

[liuhongdi@localhost ~]$ cat /etc/redhat-release 
Fedora release 30 (Thirty)

 

fedora30平台安装docker 19.03

标签:hit   获取   一个   code   mmu   uil   class   pre   oca   

原文地址:https://www.cnblogs.com/architectforest/p/12457252.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!