• 【DockerCE】Docker-CE 20.10.18正式版发布


    官网地址(For RHEL/CentOS 7.9):

    https://download.docker.com/linux/centos/7/x86_64/stable/Packages/

    1. 20.10.18版本官方发布安装包下载:
    2. https://download.docker.com/linux/centos/7/x86_64/stable/Packages/containerd.io-1.6.8-3.1.el7.x86_64.rpm
    3. https://download.docker.com/linux/centos/7/x86_64/stable/Packages/docker-ce-20.10.18-3.el7.x86_64.rpm
    4. https://download.docker.com/linux/centos/7/x86_64/stable/Packages/docker-ce-cli-20.10.18-3.el7.x86_64.rpm
    5. https://download.docker.com/linux/centos/7/x86_64/stable/Packages/docker-ce-rootless-extras-20.10.18-3.el7.x86_64.rpm
    6. https://download.docker.com/linux/centos/7/x86_64/stable/Packages/docker-compose-plugin-2.10.2-3.el7.x86_64.rpm
    7. https://download.docker.com/linux/centos/7/x86_64/stable/Packages/docker-scan-plugin-0.17.0-3.el7.x86_64.rpm

            下载完以上的官方包以后,将上面的包上传到一台可以连接外网的CentOS7.9服务器上,然后使用下面的命令来下载依赖包。

    1. # yum install -y --downloadonly --downloaddir=./ *.rpm
    2. # ls -ltr
    3. total 108076
    4. -rw-r--r-- 1 root root 32880 Jul 4 2014 python-IPy-0.75-6.el7.noarch.rpm
    5. -rw-r--r-- 1 root root 302068 Nov 12 2018 checkpolicy-2.5-8.el7.x86_64.rpm
    6. -rw-r--r-- 1 root root 115284 Nov 12 2018 libsemanage-python-2.5-14.el7.x86_64.rpm
    7. -rw-r--r-- 1 root root 635184 Nov 12 2018 setools-libs-3.3.8-4.el7.x86_64.rpm
    8. -rw-r--r-- 1 root root 78256 Aug 23 2019 audit-libs-python-2.8.5-4.el7.x86_64.rpm
    9. -rw-r--r-- 1 root root 67720 Aug 23 2019 libcgroup-0.41-21.el7.x86_64.rpm
    10. -rw-r--r-- 1 root root 468316 Apr 4 2020 policycoreutils-python-2.5-34.el7.x86_64.rpm
    11. -rw-r--r-- 1 root root 55796 Apr 29 2020 fuse-overlayfs-0.7.2-6.el7_8.x86_64.rpm
    12. -rw-r--r-- 1 root root 83764 Apr 29 2020 fuse3-libs-3.6.1-4.el7.x86_64.rpm
    13. -rw-r--r-- 1 root root 83452 Apr 29 2020 slirp4netns-0.4.3-4.el7_8.x86_64.rpm
    14. -rw-r--r-- 1 root root 40816 Jul 6 2020 container-selinux-2.119.2-1.911c772.el7_8.noarch.rpm
    15. -rw-r--r-- 1 root root 8878344 Sep 13 2022 docker-ce-rootless-extras-20.10.18-3.el7.x86_64.rpm
    16. -rw-r--r-- 1 root root 34677060 Sep 13 2022 containerd.io-1.6.8-3.1.el7.x86_64.rpm
    17. -rw-r--r-- 1 root root 7527268 Sep 13 2022 docker-compose-plugin-2.10.2-3.el7.x86_64.rpm
    18. -rw-r--r-- 1 root root 3930044 Sep 13 2022 docker-scan-plugin-0.17.0-3.el7.x86_64.rpm
    19. -rw-r--r-- 1 root root 22666600 Sep 13 2022 docker-ce-20.10.18-3.el7.x86_64.rpm
    20. -rw-r--r-- 1 root root 30988356 Sep 13 2022 docker-ce-cli-20.10.18-3.el7.x86_64.rpm
    21. # ls | wc -l
    22. 17

            依赖包下载完成后,我们就可以将这个目录打包到任何CentOS或者Redaht 7.9版本的服务器上进行安装了。

    1. # yum install -y *.rpm
    2. Loaded plugins: fastestmirror, langpacks
    3. Examining audit-libs-python-2.8.5-4.el7.x86_64.rpm: audit-libs-python-2.8.5-4.el7.x86_64
    4. Marking audit-libs-python-2.8.5-4.el7.x86_64.rpm to be installed
    5. Examining checkpolicy-2.5-8.el7.x86_64.rpm: checkpolicy-2.5-8.el7.x86_64
    6. Marking checkpolicy-2.5-8.el7.x86_64.rpm to be installed
    7. Examining containerd.io-1.6.8-3.1.el7.x86_64.rpm: containerd.io-1.6.8-3.1.el7.x86_64
    8. Marking containerd.io-1.6.8-3.1.el7.x86_64.rpm to be installed
    9. Examining container-selinux-2.119.2-1.911c772.el7_8.noarch.rpm: 2:container-selinux-2.119.2-1.911c772.el7_8.noarch
    10. Marking container-selinux-2.119.2-1.911c772.el7_8.noarch.rpm to be installed
    11. Examining docker-ce-20.10.18-3.el7.x86_64.rpm: 3:docker-ce-20.10.18-3.el7.x86_64
    12. Marking docker-ce-20.10.18-3.el7.x86_64.rpm to be installed
    13. Examining docker-ce-cli-20.10.18-3.el7.x86_64.rpm: 1:docker-ce-cli-20.10.18-3.el7.x86_64
    14. Marking docker-ce-cli-20.10.18-3.el7.x86_64.rpm to be installed
    15. Examining docker-ce-rootless-extras-20.10.18-3.el7.x86_64.rpm: docker-ce-rootless-extras-20.10.18-3.el7.x86_64
    16. Marking docker-ce-rootless-extras-20.10.18-3.el7.x86_64.rpm to be installed
    17. Examining docker-compose-plugin-2.10.2-3.el7.x86_64.rpm: docker-compose-plugin-2.10.2-3.el7.x86_64
    18. Marking docker-compose-plugin-2.10.2-3.el7.x86_64.rpm to be installed
    19. Examining docker-scan-plugin-0.17.0-3.el7.x86_64.rpm: docker-scan-plugin-0.17.0-3.el7.x86_64
    20. Marking docker-scan-plugin-0.17.0-3.el7.x86_64.rpm to be installed
    21. Examining fuse3-libs-3.6.1-4.el7.x86_64.rpm: fuse3-libs-3.6.1-4.el7.x86_64
    22. Marking fuse3-libs-3.6.1-4.el7.x86_64.rpm to be installed
    23. Examining fuse-overlayfs-0.7.2-6.el7_8.x86_64.rpm: fuse-overlayfs-0.7.2-6.el7_8.x86_64
    24. Marking fuse-overlayfs-0.7.2-6.el7_8.x86_64.rpm to be installed
    25. Examining libcgroup-0.41-21.el7.x86_64.rpm: libcgroup-0.41-21.el7.x86_64
    26. Marking libcgroup-0.41-21.el7.x86_64.rpm to be installed
    27. Examining libsemanage-python-2.5-14.el7.x86_64.rpm: libsemanage-python-2.5-14.el7.x86_64
    28. Marking libsemanage-python-2.5-14.el7.x86_64.rpm to be installed
    29. Examining policycoreutils-python-2.5-34.el7.x86_64.rpm: policycoreutils-python-2.5-34.el7.x86_64
    30. Marking policycoreutils-python-2.5-34.el7.x86_64.rpm to be installed
    31. Examining python-IPy-0.75-6.el7.noarch.rpm: python-IPy-0.75-6.el7.noarch
    32. Marking python-IPy-0.75-6.el7.noarch.rpm to be installed
    33. Examining setools-libs-3.3.8-4.el7.x86_64.rpm: setools-libs-3.3.8-4.el7.x86_64
    34. Marking setools-libs-3.3.8-4.el7.x86_64.rpm to be installed
    35. Examining slirp4netns-0.4.3-4.el7_8.x86_64.rpm: slirp4netns-0.4.3-4.el7_8.x86_64
    36. Marking slirp4netns-0.4.3-4.el7_8.x86_64.rpm to be installed
    37. Resolving Dependencies
    38. --> Running transaction check
    39. ---> Package audit-libs-python.x86_64 0:2.8.5-4.el7 will be installed
    40. ---> Package checkpolicy.x86_64 0:2.5-8.el7 will be installed
    41. ---> Package container-selinux.noarch 2:2.119.2-1.911c772.el7_8 will be installed
    42. ---> Package containerd.io.x86_64 0:1.6.8-3.1.el7 will be installed
    43. ---> Package docker-ce.x86_64 3:20.10.18-3.el7 will be installed
    44. ---> Package docker-ce-cli.x86_64 1:20.10.18-3.el7 will be installed
    45. ---> Package docker-ce-rootless-extras.x86_64 0:20.10.18-3.el7 will be installed
    46. ---> Package docker-compose-plugin.x86_64 0:2.10.2-3.el7 will be installed
    47. ---> Package docker-scan-plugin.x86_64 0:0.17.0-3.el7 will be installed
    48. ---> Package fuse-overlayfs.x86_64 0:0.7.2-6.el7_8 will be installed
    49. ---> Package fuse3-libs.x86_64 0:3.6.1-4.el7 will be installed
    50. ---> Package libcgroup.x86_64 0:0.41-21.el7 will be installed
    51. ---> Package libsemanage-python.x86_64 0:2.5-14.el7 will be installed
    52. ---> Package policycoreutils-python.x86_64 0:2.5-34.el7 will be installed
    53. ---> Package python-IPy.noarch 0:0.75-6.el7 will be installed
    54. ---> Package setools-libs.x86_64 0:3.3.8-4.el7 will be installed
    55. ---> Package slirp4netns.x86_64 0:0.4.3-4.el7_8 will be installed
    56. --> Finished Dependency Resolution
    57. Dependencies Resolved
    58. ===============================================================================================================================================================================================================
    59. Package Arch Version Repository Size
    60. ===============================================================================================================================================================================================================
    61. Installing:
    62. audit-libs-python x86_64 2.8.5-4.el7 /audit-libs-python-2.8.5-4.el7.x86_64 316 k
    63. checkpolicy x86_64 2.5-8.el7 /checkpolicy-2.5-8.el7.x86_64 1.2 M
    64. container-selinux noarch 2:2.119.2-1.911c772.el7_8 /container-selinux-2.119.2-1.911c772.el7_8.noarch 41 k
    65. containerd.io x86_64 1.6.8-3.1.el7 /containerd.io-1.6.8-3.1.el7.x86_64 125 M
    66. docker-ce x86_64 3:20.10.18-3.el7 /docker-ce-20.10.18-3.el7.x86_64 84 M
    67. docker-ce-cli x86_64 1:20.10.18-3.el7 /docker-ce-cli-20.10.18-3.el7.x86_64 129 M
    68. docker-ce-rootless-extras x86_64 20.10.18-3.el7 /docker-ce-rootless-extras-20.10.18-3.el7.x86_64 18 M
    69. docker-compose-plugin x86_64 2.10.2-3.el7 /docker-compose-plugin-2.10.2-3.el7.x86_64 25 M
    70. docker-scan-plugin x86_64 0.17.0-3.el7 /docker-scan-plugin-0.17.0-3.el7.x86_64 13 M
    71. fuse-overlayfs x86_64 0.7.2-6.el7_8 /fuse-overlayfs-0.7.2-6.el7_8.x86_64 116 k
    72. fuse3-libs x86_64 3.6.1-4.el7 /fuse3-libs-3.6.1-4.el7.x86_64 270 k
    73. libcgroup x86_64 0.41-21.el7 /libcgroup-0.41-21.el7.x86_64 134 k
    74. libsemanage-python x86_64 2.5-14.el7 /libsemanage-python-2.5-14.el7.x86_64 441 k
    75. policycoreutils-python x86_64 2.5-34.el7 /policycoreutils-python-2.5-34.el7.x86_64 1.2 M
    76. python-IPy noarch 0.75-6.el7 /python-IPy-0.75-6.el7.noarch 119 k
    77. setools-libs x86_64 3.3.8-4.el7 /setools-libs-3.3.8-4.el7.x86_64 1.8 M
    78. slirp4netns x86_64 0.4.3-4.el7_8 /slirp4netns-0.4.3-4.el7_8.x86_64 169 k
    79. Transaction Summary
    80. ===============================================================================================================================================================================================================
    81. Install 17 Packages
    82. Total size: 399 M
    83. Installed size: 399 M
    84. Downloading packages:
    85. Running transaction check
    86. Running transaction test
    87. Transaction test succeeded
    88. Running transaction
    89. Installing : docker-scan-plugin-0.17.0-3.el7.x86_64 1/17
    90. Installing : 1:docker-ce-cli-20.10.18-3.el7.x86_64 2/17
    91. Installing : libcgroup-0.41-21.el7.x86_64 3/17
    92. Installing : setools-libs-3.3.8-4.el7.x86_64 4/17
    93. Installing : audit-libs-python-2.8.5-4.el7.x86_64 5/17
    94. Installing : slirp4netns-0.4.3-4.el7_8.x86_64 6/17
    95. Installing : libsemanage-python-2.5-14.el7.x86_64 7/17
    96. Installing : python-IPy-0.75-6.el7.noarch 8/17
    97. Installing : fuse3-libs-3.6.1-4.el7.x86_64 9/17
    98. Installing : fuse-overlayfs-0.7.2-6.el7_8.x86_64 10/17
    99. Installing : checkpolicy-2.5-8.el7.x86_64 11/17
    100. Installing : policycoreutils-python-2.5-34.el7.x86_64 12/17
    101. Installing : 2:container-selinux-2.119.2-1.911c772.el7_8.noarch 13/17
    102. setsebool: SELinux is disabled.
    103. Installing : containerd.io-1.6.8-3.1.el7.x86_64 14/17
    104. Installing : docker-ce-rootless-extras-20.10.18-3.el7.x86_64 15/17
    105. Installing : 3:docker-ce-20.10.18-3.el7.x86_64 16/17
    106. Installing : docker-compose-plugin-2.10.2-3.el7.x86_64 17/17
    107. Verifying : checkpolicy-2.5-8.el7.x86_64 1/17
    108. Verifying : fuse3-libs-3.6.1-4.el7.x86_64 2/17
    109. Verifying : containerd.io-1.6.8-3.1.el7.x86_64 3/17
    110. Verifying : python-IPy-0.75-6.el7.noarch 4/17
    111. Verifying : docker-ce-rootless-extras-20.10.18-3.el7.x86_64 5/17
    112. Verifying : fuse-overlayfs-0.7.2-6.el7_8.x86_64 6/17
    113. Verifying : libsemanage-python-2.5-14.el7.x86_64 7/17
    114. Verifying : 3:docker-ce-20.10.18-3.el7.x86_64 8/17
    115. Verifying : slirp4netns-0.4.3-4.el7_8.x86_64 9/17
    116. Verifying : 2:container-selinux-2.119.2-1.911c772.el7_8.noarch 10/17
    117. Verifying : policycoreutils-python-2.5-34.el7.x86_64 11/17
    118. Verifying : 1:docker-ce-cli-20.10.18-3.el7.x86_64 12/17
    119. Verifying : docker-scan-plugin-0.17.0-3.el7.x86_64 13/17
    120. Verifying : audit-libs-python-2.8.5-4.el7.x86_64 14/17
    121. Verifying : setools-libs-3.3.8-4.el7.x86_64 15/17
    122. Verifying : docker-compose-plugin-2.10.2-3.el7.x86_64 16/17
    123. Verifying : libcgroup-0.41-21.el7.x86_64 17/17
    124. Installed:
    125. audit-libs-python.x86_64 0:2.8.5-4.el7 checkpolicy.x86_64 0:2.5-8.el7 container-selinux.noarch 2:2.119.2-1.911c772.el7_8 containerd.io.x86_64 0:1.6.8-3.1.el7
    126. docker-ce.x86_64 3:20.10.18-3.el7 docker-ce-cli.x86_64 1:20.10.18-3.el7 docker-ce-rootless-extras.x86_64 0:20.10.18-3.el7 docker-compose-plugin.x86_64 0:2.10.2-3.el7
    127. docker-scan-plugin.x86_64 0:0.17.0-3.el7 fuse-overlayfs.x86_64 0:0.7.2-6.el7_8 fuse3-libs.x86_64 0:3.6.1-4.el7 libcgroup.x86_64 0:0.41-21.el7
    128. libsemanage-python.x86_64 0:2.5-14.el7 policycoreutils-python.x86_64 0:2.5-34.el7 python-IPy.noarch 0:0.75-6.el7 setools-libs.x86_64 0:3.3.8-4.el7
    129. slirp4netns.x86_64 0:0.4.3-4.el7_8
    130. Complete!

    启动docker服务,并设置为开机自启动。

    1. # systemctl start docker.service
    2. # systemctl enable docker.service
    3. Created symlink from /etc/systemd/system/multi-user.target.wants/docker.service to /usr/lib/systemd/system/docker.service.
    4. # systemctl status docker.service
    5. ● docker.service - Docker Application Container Engine
    6. Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled)
    7. Active: active (running) since Mon 2022-09-12 21:40:11 EDT; 11min ago
    8. Docs: https://docs.docker.com
    9. Main PID: 47954 (dockerd)
    10. CGroup: /system.slice/docker.service
    11. └─47954 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
    12. Sep 12 21:40:11 docker-ce dockerd[47954]: time="2022-09-12T21:40:11.158643265-04:00" level=info msg="scheme \"unix\" not registered, fallback to default scheme" module=grpc
    13. Sep 12 21:40:11 docker-ce dockerd[47954]: time="2022-09-12T21:40:11.158658335-04:00" level=info msg="ccResolverWrapper: sending update to cc: {[{unix:///run/containerd/containerd.sock ...}" module=grpc
    14. Sep 12 21:40:11 docker-ce dockerd[47954]: time="2022-09-12T21:40:11.158665919-04:00" level=info msg="ClientConn switching balancer to \"pick_first\"" module=grpc
    15. Sep 12 21:40:11 docker-ce dockerd[47954]: time="2022-09-12T21:40:11.171084428-04:00" level=info msg="Loading containers: start."
    16. Sep 12 21:40:11 docker-ce dockerd[47954]: time="2022-09-12T21:40:11.445522038-04:00" level=info msg="Default bridge (docker0) is assigned with an IP address 172.17.0.0/16. Daemon option --bi...ed IP address"
    17. Sep 12 21:40:11 docker-ce dockerd[47954]: time="2022-09-12T21:40:11.517612385-04:00" level=info msg="Loading containers: done."
    18. Sep 12 21:40:11 docker-ce dockerd[47954]: time="2022-09-12T21:40:11.541448275-04:00" level=info msg="Docker daemon" commit=e42327a graphdriver(s)=overlay2 version=20.10.18
    19. Sep 12 21:40:11 docker-ce dockerd[47954]: time="2022-09-12T21:40:11.541564755-04:00" level=info msg="Daemon has completed initialization"
    20. Sep 12 21:40:11 docker-ce systemd[1]: Started Docker Application Container Engine.
    21. Sep 12 21:40:11 docker-ce dockerd[47954]: time="2022-09-12T21:40:11.562330822-04:00" level=info msg="API listen on /var/run/docker.sock"
    22. Hint: Some lines were ellipsized, use -l to show in full.

    查看docker-ce的版本信息:

    1. # docker version
    2. Client: Docker Engine - Community
    3. Version: 20.10.18
    4. API version: 1.41
    5. Go version: go1.18.6
    6. Git commit: b40c2f6
    7. Built: Thu Sep 8 23:14:08 2022
    8. OS/Arch: linux/amd64
    9. Context: default
    10. Experimental: true
    11. Server: Docker Engine - Community
    12. Engine:
    13. Version: 20.10.18
    14. API version: 1.41 (minimum version 1.12)
    15. Go version: go1.18.6
    16. Git commit: e42327a
    17. Built: Thu Sep 8 23:12:21 2022
    18. OS/Arch: linux/amd64
    19. Experimental: false
    20. containerd:
    21. Version: 1.6.8
    22. GitCommit: 9cd3357b7fd7218e4aec3eae239db1f68a5a6ec6
    23. runc:
    24. Version: 1.1.4
    25. GitCommit: v1.1.4-0-g5fd4c4d
    26. docker-init:
    27. Version: 0.19.0
    28. GitCommit: de40ad0
    29. # docker info
    30. Client:
    31. Context: default
    32. Debug Mode: false
    33. Plugins:
    34. app: Docker App (Docker Inc., v0.9.1-beta3)
    35. buildx: Docker Buildx (Docker Inc., v0.9.1-docker)
    36. compose: Docker Compose (Docker Inc., v2.10.2)
    37. scan: Docker Scan (Docker Inc., v0.17.0)
    38. Server:
    39. Containers: 0
    40. Running: 0
    41. Paused: 0
    42. Stopped: 0
    43. Images: 0
    44. Server Version: 20.10.18
    45. Storage Driver: overlay2
    46. Backing Filesystem: xfs
    47. Supports d_type: true
    48. Native Overlay Diff: true
    49. userxattr: false
    50. Logging Driver: json-file
    51. Cgroup Driver: cgroupfs
    52. Cgroup Version: 1
    53. Plugins:
    54. Volume: local
    55. Network: bridge host ipvlan macvlan null overlay
    56. Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
    57. Swarm: inactive
    58. Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc
    59. Default Runtime: runc
    60. Init Binary: docker-init
    61. containerd version: 9cd3357b7fd7218e4aec3eae239db1f68a5a6ec6
    62. runc version: v1.1.4-0-g5fd4c4d
    63. init version: de40ad0
    64. Security Options:
    65. seccomp
    66. Profile: default
    67. Kernel Version: 3.10.0-1160.el7.x86_64
    68. Operating System: CentOS Linux 7 (Core)
    69. OSType: linux
    70. Architecture: x86_64
    71. CPUs: 4
    72. Total Memory: 7.777GiB
    73. Name: docker-ce
    74. ID: UTDW:DI2G:VDDU:PSAG:47HJ:UC7D:SP46:N73U:BQBH:XIUI:KDJT:5KUG
    75. Docker Root Dir: /var/lib/docker
    76. Debug Mode: false
    77. Registry: https://index.docker.io/v1/
    78. Labels:
    79. Experimental: false
    80. Insecure Registries:
    81. 127.0.0.0/8
    82. Live Restore Enabled: false

  • 相关阅读:
    Oracle--19C在Centos7上的静默安装(rpm版)
    闭关之现代 C++ 笔记汇总(一):Modules
    100天精通Python(数据分析篇)——第53天:初始pandas模块
    regionserver请求不均匀
    javaScript中Number数字类型方法入门
    ICLR‘23论文得分排名! 多篇论文竟同时获1分和10分?
    【Android笔记20】Android中的字符串、颜色、尺寸等资源的介绍及使用
    PostMan工具介绍及安装使用
    探索QCS6490目标检测AI应用开发(三):模型推理
    中期国际2.19黄金市场分析:美国通胀数据火热,黄金面临高利率削弱的挑战
  • 原文地址:https://blog.csdn.net/cnskylee/article/details/126827348