fedora30平台安装docker 19.03

Posted architectforest

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了fedora30平台安装docker 19.03相关的知识,希望对你有一定的参考价值。

一,下载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的主要内容,如果未能解决你的问题,请参考以下文章

docker19.03使用NVIDIA显卡

centos 7.6 安装最新版docker 19.03

centos下docker安装教程

在树莓派2代B型/3代 上安装Fedora23 - Installing Fedora 23 on Raspberry Pi 2 model B or Raspberry Pi 3

mac安装docker

vmware安装fedora-coreos