zoukankan      html  css  js  c++  java
  • 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)
  • 相关阅读:
    [翻译]9个最好的富文本编辑器概览
    使用 AForm 快速开发高度复用的表单
    sql server和oracle行转列的一种典型方法
    hibernate4 分页报只进结果集不支持请求的操作的解决办法
    android主流UI布局
    Android 4.0源码放出
    The SQL Server Service Broker for the current database is not enabled
    iphone网络编程 http请求 get / post(发送二进制文件) 总结
    VS2008编译命令
    如何使用SOCKET 发送HTTP1.1 GET POST请求包
  • 原文地址:https://www.cnblogs.com/architectforest/p/12457252.html
Copyright © 2011-2022 走看看