Centos 7.X 安裝Docker

感謝博客園大佬的分享https://www.cnblogs.com/yufeng218/p/8370670.html

1.查看系統內核版本號

Docker 要求 CentOS 系統的內核版本高于 3.10 ,其實Centos 7.0對應的內核版本就是3.10.0-123.el7.x86_64
,我們忽略這一步也是可以的。

[root@centos7 ~]# uname -a
Linux centos7.0-x64-3.10.0-123 3.10.0-123.el7.x86_64 #1 SMP Mon Jun 30 12:09:22 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
[root@centos7 ~]# uname -r
3.10.0-123.el7.x86_64

2.更新yum

[root@centos7 ~]# sudo yum update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.njupt.edu.cn
 * extras: mirrors.zju.edu.cn
 * updates: mirrors.zju.edu.cn
Resolving Dependencies
--> Running transaction check
---> Package ModemManager-glib.x86_64 0:1.1.0-6.git20130913.el7 will be updated
---> Package ModemManager-glib.x86_64 0:1.6.10-1.el7 will be an update
---> Package NetworkManager.x86_64 1:0.9.9.1-13.git20140326.4dba720.el7 will be obsoleted
---> Package NetworkManager.x86_64 1:1.12.0-10.el7_6 will be obsoleting
--> Processing Dependency: NetworkManager-libnm(x86-64) = 1:1.12.0-10.el7_6 for package: 1:NetworkManager-1.12.0-10.el7_6.x86_64
--> Processing Dependency: libnm.so.0(libnm_1_8_0)(64bit) for package: 1:NetworkManager-1.12.0-10.el7_6.x86_64
--> Processing Dependency: libnm.so.0(libnm_1_6_0)(64bit) for package: 1:NetworkManager-1.12.0-10.el7_6.x86_64
--> Processing Dependency: libnm.so.0(libnm_1_4_0)(64bit) for package: 1:NetworkManager-1.12.0-10.el7_6.x86_64
--> Processing Dependency: libnm.so.0(libnm_1_2_0)(64bit) for package: 1:NetworkManager-1.12.0-10.el7_6.x86_64
--> Processing Dependency: libnm.so.0(libnm_1_12_0)(64bit) for package: 1:NetworkManager-1.12.0-10.el7_6.x86_64
--> Processing Dependency: libnm.so.0(libnm_1_10_2)(64bit) for package: 1:NetworkManager-1.12.0-10.el7_6.x86_64
--> Processing Dependency: libnm.so.0(libnm_1_10_0)(64bit) for package: 1:NetworkManager-1.12.0-10.el7_6.x86_64
...................................................................中間省略.....................................................................................
sqlite.x86_64 0:3.7.17-8.el7                                       sudo.x86_64 0:1.8.23-3.el7
  systemd.x86_64 0:219-62.el7_6.7                                    systemd-libs.x86_64 0:219-62.el7_6.7
  systemd-sysv.x86_64 0:219-62.el7_6.7                               tar.x86_64 2:1.26-35.el7
  teamd.x86_64 0:1.27-6.el7_6.1                                      tuned.noarch 0:2.10.0-6.el7_6.3
  tzdata.noarch 0:2019b-1.el7                                        util-linux.x86_64 0:2.23.2-59.el7_6.1
  vim-minimal.x86_64 2:7.4.160-6.el7_6                               virt-what.x86_64 0:1.18-4.el7
  wpa_supplicant.x86_64 1:2.6-12.el7                                 xfsprogs.x86_64 0:4.5.0-19.el7_6
  xz.x86_64 0:5.2.2-1.el7                                            xz-libs.x86_64 0:5.2.2-1.el7
  yum.noarch 0:3.4.3-161.el7.centos                                  yum-plugin-fastestmirror.noarch 0:1.1.31-50.el7
  zlib.x86_64 0:1.2.7-18.el7

Replaced:
  NetworkManager.x86_64 1:0.9.9.1-13.git20140326.4dba720.el7        grub2.x86_64 1:2.02-0.2.10.el7.centos.1
  grub2-tools.x86_64 1:2.02-0.2.10.el7.centos.1                     libertas-sd8686-firmware.noarch 0:20140213-0.3.git4164c23.el7
  libertas-sd8787-firmware.noarch 0:20140213-0.3.git4164c23.el7     libertas-usb8388-firmware.noarch 2:20140213-0.3.git4164c23.el7
  pygobject3-base.x86_64 0:3.8.2-4.el7

Complete!

看到Complete即可,這需要一點時間,因網絡情況而定

3.卸載舊版本(如果安裝過舊版本的話,我這里是沒安裝的)

[root@centos7 ~]# sudo yum remove docker  docker-common docker-selinux docker-engine
Loaded plugins: fastestmirror
No Match for argument: docker
No Match for argument: docker-common
No Match for argument: docker-selinux
No Match for argument: docker-engine
No Packages marked for removal

4.安裝需要的軟件包, yum-util 提供yum-config-manager功能,另外兩個是devicemapper驅動依賴的

[root@centos7 ~]# sudo yum install -y yum-utils device-mapper-persistent-data lvm2
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.zju.edu.cn
 * extras: centos.ustc.edu.cn
 * updates: centos.ustc.edu.cn
Package device-mapper-persistent-data-0.7.3-3.el7.x86_64 already installed and latest version
Package 7:lvm2-2.02.180-10.el7_6.8.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package yum-utils.noarch 0:1.1.31-50.el7 will be installed
--> Processing Dependency: python-kitchen for package: yum-utils-1.1.31-50.el7.noarch
--> Processing Dependency: libxml2-python for package: yum-utils-1.1.31-50.el7.noarch
--> Running transaction check
---> Package libxml2-python.x86_64 0:2.9.1-6.el7_2.3 will be installed
---> Package python-kitchen.noarch 0:1.1.1-5.el7 will be installed
--> Processing Dependency: python-chardet for package: python-kitchen-1.1.1-5.el7.noarch
--> Running transaction check
---> Package python-chardet.noarch 0:2.2.1-1.el7_1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=======================================================================================================================================
 Package                             Arch                        Version                               Repository                 Size
=======================================================================================================================================
Installing:
 yum-utils                           noarch                      1.1.31-50.el7                         base                      121 k
Installing for dependencies:
 libxml2-python                      x86_64                      2.9.1-6.el7_2.3                       base                      247 k
 python-chardet                      noarch                      2.2.1-1.el7_1                         base                      227 k
 python-kitchen                      noarch                      1.1.1-5.el7                           base                      267 k

Transaction Summary
=======================================================================================================================================
Install  1 Package (+3 Dependent packages)

Total download size: 861 k
Installed size: 4.3 M
Downloading packages:
(1/4): libxml2-python-2.9.1-6.el7_2.3.x86_64.rpm                                                                | 247 kB  00:00:00
(2/4): python-kitchen-1.1.1-5.el7.noarch.rpm                                                                    | 267 kB  00:00:00
(3/4): python-chardet-2.2.1-1.el7_1.noarch.rpm                                                                  | 227 kB  00:00:15
(4/4): yum-utils-1.1.31-50.el7.noarch.rpm                                                                       | 121 kB  00:00:15
---------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                   55 kB/s | 861 kB  00:00:15
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : python-chardet-2.2.1-1.el7_1.noarch                                                                                 1/4
  Installing : python-kitchen-1.1.1-5.el7.noarch                                                                                   2/4
  Installing : libxml2-python-2.9.1-6.el7_2.3.x86_64                                                                               3/4
  Installing : yum-utils-1.1.31-50.el7.noarch                                                                                      4/4
  Verifying  : libxml2-python-2.9.1-6.el7_2.3.x86_64                                                                               1/4
  Verifying  : python-kitchen-1.1.1-5.el7.noarch                                                                                   2/4
  Verifying  : yum-utils-1.1.31-50.el7.noarch                                                                                      3/4
  Verifying  : python-chardet-2.2.1-1.el7_1.noarch                                                                                 4/4

Installed:
  yum-utils.noarch 0:1.1.31-50.el7

Dependency Installed:
  libxml2-python.x86_64 0:2.9.1-6.el7_2.3       python-chardet.noarch 0:2.2.1-1.el7_1       python-kitchen.noarch 0:1.1.1-5.el7

Complete!

和上面一樣,看到Complete就好

5.設置yum源(這一步比較關鍵,我們設置阿里的源)

[root@centos7 ~]# sudo yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
Loaded plugins: fastestmirror
adding repo from: http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
grabbing file http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo to /etc/yum.repos.d/docker-ce.repo
repo saved to /etc/yum.repos.d/docker-ce.repo

6.可以查看所有倉庫中所有docker版本,并選擇特定版本安裝

[root@centos7 ~]# yum list docker-ce --showduplicates | sort -r
 * updates: centos.ustc.edu.cn
Loading mirror speeds from cached hostfile
Loaded plugins: fastestmirror
 * extras: centos.ustc.edu.cn
docker-ce.x86_64            3:19.03.1-3.el7                     docker-ce-stable
docker-ce.x86_64            3:19.03.0-3.el7                     docker-ce-stable
docker-ce.x86_64            3:18.09.8-3.el7                     docker-ce-stable
docker-ce.x86_64            3:18.09.7-3.el7                     docker-ce-stable
docker-ce.x86_64            3:18.09.6-3.el7                     docker-ce-stable
docker-ce.x86_64            3:18.09.5-3.el7                     docker-ce-stable
docker-ce.x86_64            3:18.09.4-3.el7                     docker-ce-stable
docker-ce.x86_64            3:18.09.3-3.el7                     docker-ce-stable
docker-ce.x86_64            3:18.09.2-3.el7                     docker-ce-stable
docker-ce.x86_64            3:18.09.1-3.el7                     docker-ce-stable
docker-ce.x86_64            3:18.09.0-3.el7                     docker-ce-stable
docker-ce.x86_64            18.06.3.ce-3.el7                    docker-ce-stable
docker-ce.x86_64            18.06.2.ce-3.el7                    docker-ce-stable
docker-ce.x86_64            18.06.1.ce-3.el7                    docker-ce-stable
docker-ce.x86_64            18.06.0.ce-3.el7                    docker-ce-stable
docker-ce.x86_64            18.03.1.ce-1.el7.centos             docker-ce-stable
docker-ce.x86_64            18.03.0.ce-1.el7.centos             docker-ce-stable
docker-ce.x86_64            17.12.1.ce-1.el7.centos             docker-ce-stable
docker-ce.x86_64            17.12.0.ce-1.el7.centos             docker-ce-stable
docker-ce.x86_64            17.09.1.ce-1.el7.centos             docker-ce-stable
docker-ce.x86_64            17.09.0.ce-1.el7.centos             docker-ce-stable
docker-ce.x86_64            17.06.2.ce-1.el7.centos             docker-ce-stable
docker-ce.x86_64            17.06.1.ce-1.el7.centos             docker-ce-stable
docker-ce.x86_64            17.06.0.ce-1.el7.centos             docker-ce-stable
docker-ce.x86_64            17.03.3.ce-1.el7                    docker-ce-stable
docker-ce.x86_64            17.03.2.ce-1.el7.centos             docker-ce-stable
docker-ce.x86_64            17.03.1.ce-1.el7.centos             docker-ce-stable
docker-ce.x86_64            17.03.0.ce-1.el7.centos             docker-ce-stable
 * base: centos.ustc.edu.cn
Available Packages

7.安裝docker(可以直接安裝最新的,也可以安裝指定的版本)

[root@centos7 ~]# sudo yum install docker-ce
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.zju.edu.cn
 * extras: centos.ustc.edu.cn
 * updates: centos.ustc.edu.cn
Resolving Dependencies
--> Running transaction check
---> Package docker-ce.x86_64 3:19.03.1-3.el7 will be installed
--> Processing Dependency: container-selinux >= 2:2.74 for package: 3:docker-ce-19.03.1-3.el7.x86_64
--> Processing Dependency: containerd.io >= 1.2.2-3 for package: 3:docker-ce-19.03.1-3.el7.x86_64
--> Processing Dependency: libseccomp >= 2.3 for package: 3:docker-ce-19.03.1-3.el7.x86_64
--> Processing Dependency: docker-ce-cli for package: 3:docker-ce-19.03.1-3.el7.x86_64
--> Processing Dependency: libcgroup for package: 3:docker-ce-19.03.1-3.el7.x86_64
--> Processing Dependency: libseccomp.so.2()(64bit) for package: 3:docker-ce-19.03.1-3.el7.x86_64
--> Running transaction check
---> Package container-selinux.noarch 2:2.107-1.el7_6 will be installed
--> Processing Dependency: policycoreutils-python for package: 2:container-selinux-2.107-1.el7_6.noarch
---> Package containerd.io.x86_64 0:1.2.6-3.3.el7 will be installed
---> Package docker-ce-cli.x86_64 1:19.03.1-3.el7 will be installed
---> Package libcgroup.x86_64 0:0.41-20.el7 will be installed
---> Package libseccomp.x86_64 0:2.3.1-3.el7 will be installed
--> Running transaction check
---> Package policycoreutils-python.x86_64 0:2.5-29.el7_6.1 will be installed
--> Processing Dependency: setools-libs >= 3.3.8-4 for package: policycoreutils-python-2.5-29.el7_6.1.x86_64
--> Processing Dependency: libsemanage-python >= 2.5-14 for package: policycoreutils-python-2.5-29.el7_6.1.x86_64
--> Processing Dependency: audit-libs-python >= 2.1.3-4 for package: policycoreutils-python-2.5-29.el7_6.1.x86_64
--> Processing Dependency: python-IPy for package: policycoreutils-python-2.5-29.el7_6.1.x86_64
--> Processing Dependency: libqpol.so.1(VERS_1.4)(64bit) for package: policycoreutils-python-2.5-29.el7_6.1.x86_64
--> Processing Dependency: libqpol.so.1(VERS_1.2)(64bit) for package: policycoreutils-python-2.5-29.el7_6.1.x86_64
--> Processing Dependency: libapol.so.4(VERS_4.0)(64bit) for package: policycoreutils-python-2.5-29.el7_6.1.x86_64
--> Processing Dependency: checkpolicy for package: policycoreutils-python-2.5-29.el7_6.1.x86_64
--> Processing Dependency: libqpol.so.1()(64bit) for package: policycoreutils-python-2.5-29.el7_6.1.x86_64
--> Processing Dependency: libapol.so.4()(64bit) for package: policycoreutils-python-2.5-29.el7_6.1.x86_64
--> Running transaction check
---> Package audit-libs-python.x86_64 0:2.8.4-4.el7 will be installed
---> Package checkpolicy.x86_64 0:2.5-8.el7 will be installed
---> Package libsemanage-python.x86_64 0:2.5-14.el7 will be installed
---> Package python-IPy.noarch 0:0.75-6.el7 will be installed
---> Package setools-libs.x86_64 0:3.3.8-4.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=======================================================================================================================================
 Package                                Arch                   Version                          Repository                        Size
=======================================================================================================================================
Installing:
 docker-ce                              x86_64                 3:19.03.1-3.el7                  docker-ce-stable                  24 M
Installing for dependencies:
 audit-libs-python                      x86_64                 2.8.4-4.el7                      base                              76 k
 checkpolicy                            x86_64                 2.5-8.el7                        base                             295 k
 container-selinux                      noarch                 2:2.107-1.el7_6                  extras                            39 k
 containerd.io                          x86_64                 1.2.6-3.3.el7                    docker-ce-stable                  26 M
 docker-ce-cli                          x86_64                 1:19.03.1-3.el7                  docker-ce-stable                  39 M
 libcgroup                              x86_64                 0.41-20.el7                      base                              66 k
 libseccomp                             x86_64                 2.3.1-3.el7                      base                              56 k
 libsemanage-python                     x86_64                 2.5-14.el7                       base                             113 k
 policycoreutils-python                 x86_64                 2.5-29.el7_6.1                   updates                          456 k
 python-IPy                             noarch                 0.75-6.el7                       base                              32 k
 setools-libs                           x86_64                 3.3.8-4.el7                      base                             620 k

Transaction Summary
=======================================================================================================================================
Install  1 Package (+11 Dependent packages)

Total download size: 91 M
Installed size: 374 M
Is this ok [y/d/N]: y
Downloading packages:
(1/12): container-selinux-2.107-1.el7_6.noarch.rpm                                                              |  39 kB  00:00:00
(2/12): audit-libs-python-2.8.4-4.el7.x86_64.rpm                                                                |  76 kB  00:00:00
warning: /var/cache/yum/x86_64/7/docker-ce-stable/packages/docker-ce-19.03.1-3.el7.x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID 621e9f35: NOKEY
Public key for docker-ce-19.03.1-3.el7.x86_64.rpm is not installed
(3/12): docker-ce-19.03.1-3.el7.x86_64.rpm                                                                      |  24 MB  00:00:02
(4/12): libseccomp-2.3.1-3.el7.x86_64.rpm                                                                       |  56 kB  00:00:00
(5/12): libsemanage-python-2.5-14.el7.x86_64.rpm                                                                | 113 kB  00:00:00
(6/12): docker-ce-cli-19.03.1-3.el7.x86_64.rpm                                                                  |  39 MB  00:00:04
(7/12): containerd.io-1.2.6-3.3.el7.x86_64.rpm                                                                  |  26 MB  00:00:07
(8/12): python-IPy-0.75-6.el7.noarch.rpm                                                                        |  32 kB  00:00:00
(9/12): setools-libs-3.3.8-4.el7.x86_64.rpm                                                                     | 620 kB  00:00:00
(10/12): libcgroup-0.41-20.el7.x86_64.rpm                                                                       |  66 kB  00:00:05
(11/12): checkpolicy-2.5-8.el7.x86_64.rpm                                                                       | 295 kB  00:00:15
(12/12): policycoreutils-python-2.5-29.el7_6.1.x86_64.rpm                                                       | 456 kB  00:00:15
---------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                  4.8 MB/s |  91 MB  00:00:19
Retrieving key from https://mirrors.aliyun.com/docker-ce/linux/centos/gpg
Importing GPG key 0x621E9F35:
 Userid     : "Docker Release (CE rpm) <docker@docker.com>"
 Fingerprint: 060a 61c5 1b55 8a7f 742b 77aa c52f eb6b 621e 9f35
 From       : https://mirrors.aliyun.com/docker-ce/linux/centos/gpg
Is this ok [y/N]: y
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : libcgroup-0.41-20.el7.x86_64                                                                                       1/12
  Installing : setools-libs-3.3.8-4.el7.x86_64                                                                                    2/12
  Installing : 1:docker-ce-cli-19.03.1-3.el7.x86_64                                                                               3/12
  Installing : libseccomp-2.3.1-3.el7.x86_64                                                                                      4/12
  Installing : libsemanage-python-2.5-14.el7.x86_64                                                                               5/12
  Installing : audit-libs-python-2.8.4-4.el7.x86_64                                                                               6/12
  Installing : python-IPy-0.75-6.el7.noarch                                                                                       7/12
  Installing : checkpolicy-2.5-8.el7.x86_64                                                                                       8/12
  Installing : policycoreutils-python-2.5-29.el7_6.1.x86_64                                                                       9/12
  Installing : 2:container-selinux-2.107-1.el7_6.noarch                                                                          10/12
  Installing : containerd.io-1.2.6-3.3.el7.x86_64                                                                                11/12
  Installing : 3:docker-ce-19.03.1-3.el7.x86_64                                                                                  12/12
  Verifying  : libcgroup-0.41-20.el7.x86_64                                                                                       1/12
  Verifying  : checkpolicy-2.5-8.el7.x86_64                                                                                       2/12
  Verifying  : policycoreutils-python-2.5-29.el7_6.1.x86_64                                                                       3/12
  Verifying  : python-IPy-0.75-6.el7.noarch                                                                                       4/12
  Verifying  : audit-libs-python-2.8.4-4.el7.x86_64                                                                               5/12
  Verifying  : libsemanage-python-2.5-14.el7.x86_64                                                                               6/12
  Verifying  : 2:container-selinux-2.107-1.el7_6.noarch                                                                           7/12
  Verifying  : libseccomp-2.3.1-3.el7.x86_64                                                                                      8/12
  Verifying  : containerd.io-1.2.6-3.3.el7.x86_64                                                                                 9/12
  Verifying  : 1:docker-ce-cli-19.03.1-3.el7.x86_64                                                                              10/12
  Verifying  : 3:docker-ce-19.03.1-3.el7.x86_64                                                                                  11/12
  Verifying  : setools-libs-3.3.8-4.el7.x86_64                                                                                   12/12

Installed:
  docker-ce.x86_64 3:19.03.1-3.el7

Dependency Installed:
  audit-libs-python.x86_64 0:2.8.4-4.el7    checkpolicy.x86_64 0:2.5-8.el7            container-selinux.noarch 2:2.107-1.el7_6
  containerd.io.x86_64 0:1.2.6-3.3.el7      docker-ce-cli.x86_64 1:19.03.1-3.el7      libcgroup.x86_64 0:0.41-20.el7
  libseccomp.x86_64 0:2.3.1-3.el7           libsemanage-python.x86_64 0:2.5-14.el7    policycoreutils-python.x86_64 0:2.5-29.el7_6.1
  python-IPy.noarch 0:0.75-6.el7            setools-libs.x86_64 0:3.3.8-4.el7

Complete!

或者指定安裝版本

[root@centos7 ~]# sudo yum install docker-ce-17.12.0.ce

8.啟動并加入開機啟動

[root@centos7 ~]# sudo systemctl start docker
[root@centos7 ~]# sudo systemctl enable docker
Created symlink from /etc/systemd/system/multi-user.target.wants/docker.service to /usr/lib/systemd/system/docker.service.

9.驗證安裝是否成功(有client和service兩部分表示docker安裝啟動都成功了)

[root@centos7 ~]# docker version
Client: Docker Engine - Community
 Version:           19.03.1
 API version:       1.40
 Go version:        go1.12.5
 Git commit:        74b1e89
 Built:             Thu Jul 25 21:21:07 2019
 OS/Arch:           linux/amd64
 Experimental:      false

Server: Docker Engine - Community
 Engine:
  Version:          19.03.1
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.12.5
  Git commit:       74b1e89
  Built:            Thu Jul 25 21:19:36 2019
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.2.6
  GitCommit:        894b81a4b802e4eb2a91d1ce216b8817763c29fb
 runc:
  Version:          1.0.0-rc8
  GitCommit:        425e105d5a03fabd737a126ad93d62a9eeede87f
 docker-init:
  Version:          0.18.0
  GitCommit:        fec3683

另外也可以這樣驗證

[root@centos7 ~]# docker pull library/hello-world
Using default tag: latest
latest: Pulling from library/hello-world
1b930d010525: Pull complete
Digest: sha256:451ce787d12369c5df2a32c85e5a03d52cbcef6eb3586dd03075f3034f10adcd
Status: Downloaded newer image for hello-world:latest
docker.io/library/hello-world:latest
[root@centos7 ~]# docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
hello-world         latest              fce289e99eb9        7 months ago        1.84kB
[root@centos7 ~]# docker run hello-world

Hello 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 bash

Share images, automate workflows, and more with a free Docker ID:
 https://hub.docker.com/

For more examples and ideas, visit:
 https://docs.docker.com/get-started/

去拉一個文件看看,拉下來執行一把,如果能拉,并能執行,docker安裝肯定沒問題。

?著作權歸作者所有,轉載或內容合作請聯系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發布,文章內容僅代表作者本人觀點,簡書系信息發布平臺,僅提供信息存儲服務。
  • 序言:七十年代末,一起剝皮案震驚了整個濱河市,隨后出現的幾起案子,更是在濱河造成了極大的恐慌,老刑警劉巖,帶你破解...
    沈念sama閱讀 229,763評論 6 539
  • 序言:濱河連續發生了三起死亡事件,死亡現場離奇詭異,居然都是意外死亡,警方通過查閱死者的電腦和手機,發現死者居然都...
    沈念sama閱讀 99,238評論 3 428
  • 文/潘曉璐 我一進店門,熙熙樓的掌柜王于貴愁眉苦臉地迎上來,“玉大人,你說我怎么就攤上這事。” “怎么了?”我有些...
    開封第一講書人閱讀 177,823評論 0 383
  • 文/不壞的土叔 我叫張陵,是天一觀的道長。 經常有香客問我,道長,這世上最難降的妖魔是什么? 我笑而不...
    開封第一講書人閱讀 63,604評論 1 317
  • 正文 為了忘掉前任,我火速辦了婚禮,結果婚禮上,老公的妹妹穿的比我還像新娘。我一直安慰自己,他們只是感情好,可當我...
    茶點故事閱讀 72,339評論 6 410
  • 文/花漫 我一把揭開白布。 她就那樣靜靜地躺著,像睡著了一般。 火紅的嫁衣襯著肌膚如雪。 梳的紋絲不亂的頭發上,一...
    開封第一講書人閱讀 55,713評論 1 328
  • 那天,我揣著相機與錄音,去河邊找鬼。 笑死,一個胖子當著我的面吹牛,可吹牛的內容都是我干的。 我是一名探鬼主播,決...
    沈念sama閱讀 43,712評論 3 445
  • 文/蒼蘭香墨 我猛地睜開眼,長吁一口氣:“原來是場噩夢啊……” “哼!你這毒婦竟也來了?” 一聲冷哼從身側響起,我...
    開封第一講書人閱讀 42,893評論 0 289
  • 序言:老撾萬榮一對情侶失蹤,失蹤者是張志新(化名)和其女友劉穎,沒想到半個月后,有當地人在樹林里發現了一具尸體,經...
    沈念sama閱讀 49,448評論 1 335
  • 正文 獨居荒郊野嶺守林人離奇死亡,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內容為張勛視角 年9月15日...
    茶點故事閱讀 41,201評論 3 357
  • 正文 我和宋清朗相戀三年,在試婚紗的時候發現自己被綠了。 大學時的朋友給我發了我未婚夫和他白月光在一起吃飯的照片。...
    茶點故事閱讀 43,397評論 1 372
  • 序言:一個原本活蹦亂跳的男人離奇死亡,死狀恐怖,靈堂內的尸體忽然破棺而出,到底是詐尸還是另有隱情,我是刑警寧澤,帶...
    沈念sama閱讀 38,944評論 5 363
  • 正文 年R本政府宣布,位于F島的核電站,受9級特大地震影響,放射性物質發生泄漏。R本人自食惡果不足惜,卻給世界環境...
    茶點故事閱讀 44,631評論 3 348
  • 文/蒙蒙 一、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧,春花似錦、人聲如沸。這莊子的主人今日做“春日...
    開封第一講書人閱讀 35,033評論 0 28
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽。三九已至,卻和暖如春,著一層夾襖步出監牢的瞬間,已是汗流浹背。 一陣腳步聲響...
    開封第一講書人閱讀 36,321評論 1 293
  • 我被黑心中介騙來泰國打工, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留,地道東北人。 一個月前我還...
    沈念sama閱讀 52,128評論 3 398
  • 正文 我出身青樓,卻偏偏與公主長得像,于是被迫代替她去往敵國和親。 傳聞我的和親對象是個殘疾皇子,可洞房花燭夜當晚...
    茶點故事閱讀 48,347評論 2 377

推薦閱讀更多精彩內容