AKAI TSUKI

System development or Technical something

install docker 1.13 on CentOS 7

I try to install docker 1.13 on CentOS 7.

(Reference) https://docs.docker.com/engine/installation/linux/centos/

add repo to yum

[vagrant@localhost ~]$ sudo yum install -y yum-utils
Loaded plugins: fastestmirror
Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
base                                                                        | 3.6 kB  00:00:00
epel/x86_64/metalink                                                        | 5.7 kB  00:00:00
epel                                                                        | 4.3 kB  00:00:00
extras                                                                      | 3.4 kB  00:00:00
puppetlabs-pc1                                                              | 2.5 kB  00:00:00
updates                                                                     | 3.4 kB  00:00:00
(1/8): base/7/x86_64/group_gz                                               | 155 kB  00:00:00
(2/8): epel/x86_64/group_gz                                                 | 170 kB  00:00:00
(3/8): epel/x86_64/updateinfo                                               | 730 kB  00:00:00
(4/8): extras/7/x86_64/primary_db                                           | 121 kB  00:00:00
(5/8): puppetlabs-pc1/x86_64/primary_db                                     |  99 kB  00:00:01
(6/8): base/7/x86_64/primary_db                                             | 5.6 MB  00:00:05
(7/8): updates/7/x86_64/primary_db                                          | 2.2 MB  00:00:08
(8/8): epel/x86_64/primary_db                                               | 4.5 MB  00:00:10
Determining fastest mirrors
 * base: www.ftp.ne.jp
 * epel: ftp.riken.jp
 * extras: www.ftp.ne.jp
 * updates: www.ftp.ne.jp
Resolving Dependencies
--> Running transaction check
---> Package yum-utils.noarch 0:1.1.31-40.el7 will be installed
--> Processing Dependency: yum >= 3.4.3-143 for package: yum-utils-1.1.31-40.el7.noarch
--> Processing Dependency: python-kitchen for package: yum-utils-1.1.31-40.el7.noarch
--> Processing Dependency: libxml2-python for package: yum-utils-1.1.31-40.el7.noarch
--> Running transaction check
---> Package libxml2-python.x86_64 0:2.9.1-6.el7_2.3 will be installed
--> Processing Dependency: libxml2 = 2.9.1-6.el7_2.3 for package: libxml2-python-2.9.1-6.el7_2.3.x86_64
---> 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
---> Package yum.noarch 0:3.4.3-132.el7.centos.0.1 will be updated
---> Package yum.noarch 0:3.4.3-150.el7.centos will be an update
--> Processing Dependency: python-urlgrabber >= 3.10-8 for package: yum-3.4.3-150.el7.centos.noarch
--> Running transaction check
---> Package libxml2.x86_64 0:2.9.1-6.el7_2.2 will be updated
---> Package libxml2.x86_64 0:2.9.1-6.el7_2.3 will be an update
---> Package python-chardet.noarch 0:2.2.1-1.el7_1 will be installed
---> Package python-urlgrabber.noarch 0:3.10-7.el7 will be updated
---> Package python-urlgrabber.noarch 0:3.10-8.el7 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================================
 Package                     Arch             Version                         Repository      Size
===================================================================================================
Installing:
 yum-utils                   noarch           1.1.31-40.el7                   base           116 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
Updating for dependencies:
 libxml2                     x86_64           2.9.1-6.el7_2.3                 base           668 k
 python-urlgrabber           noarch           3.10-8.el7                      base           108 k
 yum                         noarch           3.4.3-150.el7.centos            base           1.2 M

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

Total download size: 2.8 M
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(1/7): libxml2-python-2.9.1-6.el7_2.3.x86_64.rpm                            | 247 kB  00:00:00
(2/7): python-chardet-2.2.1-1.el7_1.noarch.rpm                              | 227 kB  00:00:00
(3/7): python-urlgrabber-3.10-8.el7.noarch.rpm                              | 108 kB  00:00:00
(4/7): python-kitchen-1.1.1-5.el7.noarch.rpm                                | 267 kB  00:00:00
(5/7): yum-utils-1.1.31-40.el7.noarch.rpm                                   | 116 kB  00:00:00
(6/7): yum-3.4.3-150.el7.centos.noarch.rpm                                  | 1.2 MB  00:00:00
(7/7): libxml2-2.9.1-6.el7_2.3.x86_64.rpm                                   | 668 kB  00:00:02
---------------------------------------------------------------------------------------------------
Total                                                              1.2 MB/s | 2.8 MB  00:00:02
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : python-urlgrabber-3.10-8.el7.noarch                                            1/10
  Updating   : yum-3.4.3-150.el7.centos.noarch                                                2/10
  Installing : python-chardet-2.2.1-1.el7_1.noarch                                            3/10
  Installing : python-kitchen-1.1.1-5.el7.noarch                                              4/10
  Updating   : libxml2-2.9.1-6.el7_2.3.x86_64                                                 5/10
  Installing : libxml2-python-2.9.1-6.el7_2.3.x86_64                                          6/10
  Installing : yum-utils-1.1.31-40.el7.noarch                                                 7/10
  Cleanup    : yum-3.4.3-132.el7.centos.0.1.noarch                                            8/10
  Cleanup    : python-urlgrabber-3.10-7.el7.noarch                                            9/10
  Cleanup    : libxml2-2.9.1-6.el7_2.2.x86_64                                                10/10
  Verifying  : yum-utils-1.1.31-40.el7.noarch                                                 1/10
  Verifying  : libxml2-2.9.1-6.el7_2.3.x86_64                                                 2/10
  Verifying  : libxml2-python-2.9.1-6.el7_2.3.x86_64                                          3/10
  Verifying  : python-chardet-2.2.1-1.el7_1.noarch                                            4/10
  Verifying  : yum-3.4.3-150.el7.centos.noarch                                                5/10
  Verifying  : python-kitchen-1.1.1-5.el7.noarch                                              6/10
  Verifying  : python-urlgrabber-3.10-8.el7.noarch                                            7/10
  Verifying  : libxml2-2.9.1-6.el7_2.2.x86_64                                                 8/10
  Verifying  : yum-3.4.3-132.el7.centos.0.1.noarch                                            9/10
  Verifying  : python-urlgrabber-3.10-7.el7.noarch                                           10/10

Installed:
  yum-utils.noarch 0:1.1.31-40.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

Dependency Updated:
  libxml2.x86_64 0:2.9.1-6.el7_2.3               python-urlgrabber.noarch 0:3.10-8.el7
  yum.noarch 0:3.4.3-150.el7.centos

Complete!
[vagrant@localhost ~]$ 
[vagrant@localhost ~]$ sudo yum-config-manager \
>     --add-repo \
>     https://docs.docker.com/engine/installation/linux/repo_files/centos/docker.repo
Loaded plugins: fastestmirror
adding repo from: https://docs.docker.com/engine/installation/linux/repo_files/centos/docker.repo
grabbing file https://docs.docker.com/engine/installation/linux/repo_files/centos/docker.repo to /etc/yum.repos.d/docker.repo
repo saved to /etc/yum.repos.d/docker.repo
[vagrant@localhost ~]$
[vagrant@localhost ~]$ sudo yum makecache fast
Loaded plugins: fastestmirror
base                                                                        | 3.6 kB  00:00:00
docker-main                                                                 | 2.9 kB  00:00:00
epel/x86_64/metalink                                                        | 5.7 kB  00:00:00
extras                                                                      | 3.4 kB  00:00:00
puppetlabs-pc1                                                              | 2.5 kB  00:00:00
updates                                                                     | 3.4 kB  00:00:00
docker-main/primary_db                                                      |  28 kB  00:00:01
Loading mirror speeds from cached hostfile
 * base: www.ftp.ne.jp
 * epel: ftp.riken.jp
 * extras: www.ftp.ne.jp
 * updates: www.ftp.ne.jp
Metadata Cache Created
[vagrant@localhost ~]$

install

[vagrant@localhost ~]$ sudo yum -y install docker-engine
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: www.ftp.ne.jp
 * epel: ftp.riken.jp
 * extras: www.ftp.ne.jp
 * updates: www.ftp.ne.jp
Resolving Dependencies
--> Running transaction check
---> Package docker-engine.x86_64 0:1.13.0-1.el7.centos will be installed
--> Processing Dependency: docker-engine-selinux >= 1.13.0-1.el7.centos for package: docker-engine-1.13.0-1.el7.centos.x86_64
--> Processing Dependency: libcgroup for package: docker-engine-1.13.0-1.el7.centos.x86_64
--> Processing Dependency: libseccomp.so.2()(64bit) for package: docker-engine-1.13.0-1.el7.centos.x86_64
--> Processing Dependency: libltdl.so.7()(64bit) for package: docker-engine-1.13.0-1.el7.centos.x86_64
--> Running transaction check
---> Package docker-engine-selinux.noarch 0:1.13.0-1.el7.centos will be installed
--> Processing Dependency: selinux-policy-base >= 3.13.1-102 for package: docker-engine-selinux-1.13.0-1.el7.centos.noarch
--> Processing Dependency: selinux-policy-targeted >= 3.13.1-102 for package: docker-engine-selinux-1.13.0-1.el7.centos.noarch
--> Processing Dependency: policycoreutils-python for package: docker-engine-selinux-1.13.0-1.el7.centos.noarch
---> Package libcgroup.x86_64 0:0.41-11.el7 will be installed
---> Package libseccomp.x86_64 0:2.3.1-2.el7 will be installed
---> Package libtool-ltdl.x86_64 0:2.4.2-21.el7_2 will be installed
--> Running transaction check
---> Package policycoreutils-python.x86_64 0:2.5-11.el7_3 will be installed
--> Processing Dependency: policycoreutils = 2.5-11.el7_3 for package: policycoreutils-python-2.5-11.el7_3.x86_64
--> Processing Dependency: setools-libs >= 3.3.8-1 for package: policycoreutils-python-2.5-11.el7_3.x86_64
--> Processing Dependency: libsemanage-python >= 2.5-5 for package: policycoreutils-python-2.5-11.el7_3.x86_64
--> Processing Dependency: audit-libs-python >= 2.1.3-4 for package: policycoreutils-python-2.5-11.el7_3.x86_64
--> Processing Dependency: python-IPy for package: policycoreutils-python-2.5-11.el7_3.x86_64
--> Processing Dependency: libsepol.so.1(LIBSEPOL_1.0)(64bit) for package: policycoreutils-python-2.5-11.el7_3.x86_64
--> Processing Dependency: libqpol.so.1(VERS_1.4)(64bit) for package: policycoreutils-python-2.5-11.el7_3.x86_64
--> Processing Dependency: libqpol.so.1(VERS_1.2)(64bit) for package: policycoreutils-python-2.5-11.el7_3.x86_64
--> Processing Dependency: libapol.so.4(VERS_4.0)(64bit) for package: policycoreutils-python-2.5-11.el7_3.x86_64
--> Processing Dependency: checkpolicy for package: policycoreutils-python-2.5-11.el7_3.x86_64
--> Processing Dependency: libqpol.so.1()(64bit) for package: policycoreutils-python-2.5-11.el7_3.x86_64
--> Processing Dependency: libapol.so.4()(64bit) for package: policycoreutils-python-2.5-11.el7_3.x86_64
---> Package selinux-policy-targeted.noarch 0:3.13.1-60.el7 will be updated
---> Package selinux-policy-targeted.noarch 0:3.13.1-102.el7_3.13 will be an update
--> Processing Dependency: selinux-policy = 3.13.1-102.el7_3.13 for package: selinux-policy-targeted-3.13.1-102.el7_3.13.noarch
--> Processing Dependency: selinux-policy = 3.13.1-102.el7_3.13 for package: selinux-policy-targeted-3.13.1-102.el7_3.13.noarch
--> Running transaction check
---> Package audit-libs-python.x86_64 0:2.6.5-3.el7 will be installed
--> Processing Dependency: audit-libs(x86-64) = 2.6.5-3.el7 for package: audit-libs-python-2.6.5-3.el7.x86_64
---> Package checkpolicy.x86_64 0:2.5-4.el7 will be installed
---> Package libsemanage-python.x86_64 0:2.5-5.1.el7_3 will be installed
--> Processing Dependency: libsemanage = 2.5-5.1.el7_3 for package: libsemanage-python-2.5-5.1.el7_3.x86_64
--> Processing Dependency: libsemanage.so.1(LIBSEMANAGE_1.1)(64bit) for package: libsemanage-python-2.5-5.1.el7_3.x86_64
---> Package libsepol.x86_64 0:2.1.9-3.el7 will be updated
---> Package libsepol.x86_64 0:2.5-6.el7 will be an update
---> Package policycoreutils.x86_64 0:2.2.5-20.el7 will be updated
---> Package policycoreutils.x86_64 0:2.5-11.el7_3 will be an update
--> Processing Dependency: libselinux-utils >= 2.5-6 for package: policycoreutils-2.5-11.el7_3.x86_64
---> Package python-IPy.noarch 0:0.75-6.el7 will be installed
---> Package selinux-policy.noarch 0:3.13.1-60.el7 will be updated
---> Package selinux-policy.noarch 0:3.13.1-102.el7_3.13 will be an update
---> Package setools-libs.x86_64 0:3.3.8-1.1.el7 will be installed
--> Processing Dependency: libselinux >= 2.5-0 for package: setools-libs-3.3.8-1.1.el7.x86_64
--> Running transaction check
---> Package audit-libs.x86_64 0:2.4.1-5.el7 will be updated
--> Processing Dependency: audit-libs = 2.4.1-5.el7 for package: audit-2.4.1-5.el7.x86_64
---> Package audit-libs.x86_64 0:2.6.5-3.el7 will be an update
---> Package libselinux.x86_64 0:2.2.2-6.el7 will be updated
--> Processing Dependency: libselinux = 2.2.2-6.el7 for package: libselinux-python-2.2.2-6.el7.x86_64
---> Package libselinux.x86_64 0:2.5-6.el7 will be an update
---> Package libselinux-utils.x86_64 0:2.2.2-6.el7 will be updated
---> Package libselinux-utils.x86_64 0:2.5-6.el7 will be an update
---> Package libsemanage.x86_64 0:2.1.10-18.el7 will be updated
---> Package libsemanage.x86_64 0:2.5-5.1.el7_3 will be an update
--> Running transaction check
---> Package audit.x86_64 0:2.4.1-5.el7 will be updated
---> Package audit.x86_64 0:2.6.5-3.el7 will be an update
---> Package libselinux-python.x86_64 0:2.2.2-6.el7 will be updated
---> Package libselinux-python.x86_64 0:2.5-6.el7 will be an update
--> Processing Conflict: libselinux-2.5-6.el7.x86_64 conflicts systemd < 219-20
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package systemd.x86_64 0:219-19.el7 will be updated
--> Processing Dependency: systemd = 219-19.el7 for package: systemd-sysv-219-19.el7.x86_64
---> Package systemd.x86_64 0:219-30.el7_3.6 will be an update
--> Processing Dependency: systemd-libs = 219-30.el7_3.6 for package: systemd-219-30.el7_3.6.x86_64
--> Running transaction check
---> Package systemd-libs.x86_64 0:219-19.el7 will be updated
--> Processing Dependency: systemd-libs = 219-19.el7 for package: libgudev1-219-19.el7.x86_64
---> Package systemd-libs.x86_64 0:219-30.el7_3.6 will be an update
---> Package systemd-sysv.x86_64 0:219-19.el7 will be updated
---> Package systemd-sysv.x86_64 0:219-30.el7_3.6 will be an update
--> Running transaction check
---> Package libgudev1.x86_64 0:219-19.el7 will be updated
---> Package libgudev1.x86_64 0:219-30.el7_3.6 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================================
 Package                        Arch          Version                     Repository          Size
===================================================================================================
Installing:
 docker-engine                  x86_64        1.13.0-1.el7.centos         docker-main         19 M
Updating:
 systemd                        x86_64        219-30.el7_3.6              updates            5.2 M
Installing for dependencies:
 audit-libs-python              x86_64        2.6.5-3.el7                 base                70 k
 checkpolicy                    x86_64        2.5-4.el7                   base               290 k
 docker-engine-selinux          noarch        1.13.0-1.el7.centos         docker-main         28 k
 libcgroup                      x86_64        0.41-11.el7                 base                65 k
 libseccomp                     x86_64        2.3.1-2.el7                 base                56 k
 libsemanage-python             x86_64        2.5-5.1.el7_3               updates            104 k
 libtool-ltdl                   x86_64        2.4.2-21.el7_2              base                49 k
 policycoreutils-python         x86_64        2.5-11.el7_3                updates            445 k
 python-IPy                     noarch        0.75-6.el7                  base                32 k
 setools-libs                   x86_64        3.3.8-1.1.el7               base               612 k
Updating for dependencies:
 audit                          x86_64        2.6.5-3.el7                 base               233 k
 audit-libs                     x86_64        2.6.5-3.el7                 base                85 k
 libgudev1                      x86_64        219-30.el7_3.6              updates             76 k
 libselinux                     x86_64        2.5-6.el7                   base               161 k
 libselinux-python              x86_64        2.5-6.el7                   base               234 k
 libselinux-utils               x86_64        2.5-6.el7                   base               151 k
 libsemanage                    x86_64        2.5-5.1.el7_3               updates            144 k
 libsepol                       x86_64        2.5-6.el7                   base               288 k
 policycoreutils                x86_64        2.5-11.el7_3                updates            841 k
 selinux-policy                 noarch        3.13.1-102.el7_3.13         updates            414 k
 selinux-policy-targeted        noarch        3.13.1-102.el7_3.13         updates            6.4 M
 systemd-libs                   x86_64        219-30.el7_3.6              updates            368 k
 systemd-sysv                   x86_64        219-30.el7_3.6              updates             63 k

Transaction Summary
===================================================================================================
Install  1 Package (+10 Dependent packages)
Upgrade  1 Package (+13 Dependent packages)

Total download size: 35 M
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(1/25): audit-libs-2.6.5-3.el7.x86_64.rpm                                   |  85 kB  00:00:00
(2/25): audit-2.6.5-3.el7.x86_64.rpm                                        | 233 kB  00:00:00
(3/25): audit-libs-python-2.6.5-3.el7.x86_64.rpm                            |  70 kB  00:00:00
(4/25): libcgroup-0.41-11.el7.x86_64.rpm                                    |  65 kB  00:00:00
(5/25): checkpolicy-2.5-4.el7.x86_64.rpm                                    | 290 kB  00:00:00
(6/25): libseccomp-2.3.1-2.el7.x86_64.rpm                                   |  56 kB  00:00:00
(7/25): libselinux-2.5-6.el7.x86_64.rpm                                     | 161 kB  00:00:00
(8/25): libgudev1-219-30.el7_3.6.x86_64.rpm                                 |  76 kB  00:00:00
(9/25): libselinux-utils-2.5-6.el7.x86_64.rpm                               | 151 kB  00:00:00
(10/25): libsemanage-2.5-5.1.el7_3.x86_64.rpm                               | 144 kB  00:00:00
(11/25): libselinux-python-2.5-6.el7.x86_64.rpm                             | 234 kB  00:00:00
(12/25): libsemanage-python-2.5-5.1.el7_3.x86_64.rpm                        | 104 kB  00:00:00
(13/25): libtool-ltdl-2.4.2-21.el7_2.x86_64.rpm                             |  49 kB  00:00:00
(14/25): libsepol-2.5-6.el7.x86_64.rpm                                      | 288 kB  00:00:00
(15/25): python-IPy-0.75-6.el7.noarch.rpm                                   |  32 kB  00:00:00
(16/25): policycoreutils-2.5-11.el7_3.x86_64.rpm                            | 841 kB  00:00:00
(17/25): policycoreutils-python-2.5-11.el7_3.x86_64.rpm                     | 445 kB  00:00:00
(18/25): selinux-policy-3.13.1-102.el7_3.13.noarch.rpm                      | 414 kB  00:00:00
warning: /var/cache/yum/x86_64/7/docker-main/packages/docker-engine-selinux-1.13.0-1.el7.centos.noarch.rpm: Header V4 RSA/SHA512 Signature, key ID 2c52609d: NOKEY
Public key for docker-engine-selinux-1.13.0-1.el7.centos.noarch.rpm is not installed
(19/25): docker-engine-selinux-1.13.0-1.el7.centos.noarch.rpm               |  28 kB  00:00:00
(20/25): setools-libs-3.3.8-1.1.el7.x86_64.rpm                              | 612 kB  00:00:00
(21/25): systemd-219-30.el7_3.6.x86_64.rpm                                  | 5.2 MB  00:00:02
(22/25): systemd-libs-219-30.el7_3.6.x86_64.rpm                             | 368 kB  00:00:00
(23/25): systemd-sysv-219-30.el7_3.6.x86_64.rpm                             |  63 kB  00:00:00
(24/25): selinux-policy-targeted-3.13.1-102.el7_3.13.noarch.rpm             | 6.4 MB  00:00:03
(25/25): docker-engine-1.13.0-1.el7.centos.x86_64.rpm                       |  19 MB  00:00:07
---------------------------------------------------------------------------------------------------
Total                                                              4.3 MB/s |  35 MB  00:00:08
Retrieving key from https://yum.dockerproject.org/gpg
Importing GPG key 0x2C52609D:
 Userid     : "Docker Release Tool (releasedocker) <docker@docker.com>"
 Fingerprint: 5811 8e89 f3a9 1289 7c07 0adb f762 2157 2c52 609d
 From       : https://yum.dockerproject.org/gpg
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : libsepol-2.5-6.el7.x86_64                                                      1/39
  Updating   : libselinux-2.5-6.el7.x86_64                                                    2/39
  Updating   : audit-libs-2.6.5-3.el7.x86_64                                                  3/39
  Updating   : libsemanage-2.5-5.1.el7_3.x86_64                                               4/39
  Updating   : systemd-libs-219-30.el7_3.6.x86_64                                             5/39
  Updating   : systemd-219-30.el7_3.6.x86_64                                                  6/39
  Installing : libcgroup-0.41-11.el7.x86_64                                                   7/39
  Updating   : libselinux-utils-2.5-6.el7.x86_64                                              8/39
  Updating   : policycoreutils-2.5-11.el7_3.x86_64                                            9/39
  Updating   : selinux-policy-3.13.1-102.el7_3.13.noarch                                     10/39
  Updating   : selinux-policy-targeted-3.13.1-102.el7_3.13.noarch                            11/39
  Updating   : systemd-sysv-219-30.el7_3.6.x86_64                                            12/39
  Installing : libsemanage-python-2.5-5.1.el7_3.x86_64                                       13/39
  Installing : audit-libs-python-2.6.5-3.el7.x86_64                                          14/39
  Updating   : libselinux-python-2.5-6.el7.x86_64                                            15/39
  Installing : setools-libs-3.3.8-1.1.el7.x86_64                                             16/39
  Installing : checkpolicy-2.5-4.el7.x86_64                                                  17/39
  Installing : libtool-ltdl-2.4.2-21.el7_2.x86_64                                            18/39
  Installing : python-IPy-0.75-6.el7.noarch                                                  19/39
  Installing : policycoreutils-python-2.5-11.el7_3.x86_64                                    20/39
  Installing : docker-engine-selinux-1.13.0-1.el7.centos.noarch                              21/39
setsebool:  SELinux is disabled.
libsemanage.semanage_direct_install_info: Overriding docker module at lower priority 100 with module at priority 400.
  Installing : libseccomp-2.3.1-2.el7.x86_64                                                 22/39
  Installing : docker-engine-1.13.0-1.el7.centos.x86_64                                      23/39
  Updating   : audit-2.6.5-3.el7.x86_64                                                      24/39
  Updating   : libgudev1-219-30.el7_3.6.x86_64                                               25/39
  Cleanup    : audit-2.4.1-5.el7.x86_64                                                      26/39
  Cleanup    : selinux-policy-targeted-3.13.1-60.el7.noarch                                  27/39
  Cleanup    : selinux-policy-3.13.1-60.el7.noarch                                           28/39
  Cleanup    : systemd-sysv-219-19.el7.x86_64                                                29/39
  Cleanup    : policycoreutils-2.2.5-20.el7.x86_64                                           30/39
  Cleanup    : libsemanage-2.1.10-18.el7.x86_64                                              31/39
  Cleanup    : systemd-219-19.el7.x86_64                                                     32/39
  Cleanup    : libselinux-utils-2.2.2-6.el7.x86_64                                           33/39
  Cleanup    : libgudev1-219-19.el7.x86_64                                                   34/39
  Cleanup    : systemd-libs-219-19.el7.x86_64                                                35/39
  Cleanup    : libselinux-python-2.2.2-6.el7.x86_64                                          36/39
  Cleanup    : libselinux-2.2.2-6.el7.x86_64                                                 37/39
  Cleanup    : libsepol-2.1.9-3.el7.x86_64                                                   38/39
  Cleanup    : audit-libs-2.4.1-5.el7.x86_64                                                 39/39
  Verifying  : libseccomp-2.3.1-2.el7.x86_64                                                  1/39
  Verifying  : libsepol-2.5-6.el7.x86_64                                                      2/39
  Verifying  : docker-engine-selinux-1.13.0-1.el7.centos.noarch                               3/39
  Verifying  : libselinux-python-2.5-6.el7.x86_64                                             4/39
  Verifying  : policycoreutils-python-2.5-11.el7_3.x86_64                                     5/39
  Verifying  : systemd-libs-219-30.el7_3.6.x86_64                                             6/39
  Verifying  : libsemanage-python-2.5-5.1.el7_3.x86_64                                        7/39
  Verifying  : libselinux-utils-2.5-6.el7.x86_64                                              8/39
  Verifying  : policycoreutils-2.5-11.el7_3.x86_64                                            9/39
  Verifying  : audit-libs-2.6.5-3.el7.x86_64                                                 10/39
  Verifying  : selinux-policy-3.13.1-102.el7_3.13.noarch                                     11/39
  Verifying  : python-IPy-0.75-6.el7.noarch                                                  12/39
  Verifying  : systemd-219-30.el7_3.6.x86_64                                                 13/39
  Verifying  : audit-2.6.5-3.el7.x86_64                                                      14/39
  Verifying  : libtool-ltdl-2.4.2-21.el7_2.x86_64                                            15/39
  Verifying  : libsemanage-2.5-5.1.el7_3.x86_64                                              16/39
  Verifying  : systemd-sysv-219-30.el7_3.6.x86_64                                            17/39
  Verifying  : audit-libs-python-2.6.5-3.el7.x86_64                                          18/39
  Verifying  : libselinux-2.5-6.el7.x86_64                                                   19/39
  Verifying  : libgudev1-219-30.el7_3.6.x86_64                                               20/39
  Verifying  : selinux-policy-targeted-3.13.1-102.el7_3.13.noarch                            21/39
  Verifying  : docker-engine-1.13.0-1.el7.centos.x86_64                                      22/39
  Verifying  : libcgroup-0.41-11.el7.x86_64                                                  23/39
  Verifying  : setools-libs-3.3.8-1.1.el7.x86_64                                             24/39
  Verifying  : checkpolicy-2.5-4.el7.x86_64                                                  25/39
  Verifying  : selinux-policy-targeted-3.13.1-60.el7.noarch                                  26/39
  Verifying  : libsemanage-2.1.10-18.el7.x86_64                                              27/39
  Verifying  : systemd-sysv-219-19.el7.x86_64                                                28/39
  Verifying  : libgudev1-219-19.el7.x86_64                                                   29/39
  Verifying  : systemd-219-19.el7.x86_64                                                     30/39
  Verifying  : selinux-policy-3.13.1-60.el7.noarch                                           31/39
  Verifying  : libselinux-utils-2.2.2-6.el7.x86_64                                           32/39
  Verifying  : libsepol-2.1.9-3.el7.x86_64                                                   33/39
  Verifying  : audit-libs-2.4.1-5.el7.x86_64                                                 34/39
  Verifying  : libselinux-python-2.2.2-6.el7.x86_64                                          35/39
  Verifying  : systemd-libs-219-19.el7.x86_64                                                36/39
  Verifying  : policycoreutils-2.2.5-20.el7.x86_64                                           37/39
  Verifying  : audit-2.4.1-5.el7.x86_64                                                      38/39
  Verifying  : libselinux-2.2.2-6.el7.x86_64                                                 39/39

Installed:
  docker-engine.x86_64 0:1.13.0-1.el7.centos

Dependency Installed:
  audit-libs-python.x86_64 0:2.6.5-3.el7              checkpolicy.x86_64 0:2.5-4.el7
  docker-engine-selinux.noarch 0:1.13.0-1.el7.centos  libcgroup.x86_64 0:0.41-11.el7
  libseccomp.x86_64 0:2.3.1-2.el7                     libsemanage-python.x86_64 0:2.5-5.1.el7_3
  libtool-ltdl.x86_64 0:2.4.2-21.el7_2                policycoreutils-python.x86_64 0:2.5-11.el7_3
  python-IPy.noarch 0:0.75-6.el7                      setools-libs.x86_64 0:3.3.8-1.1.el7

Updated:
  systemd.x86_64 0:219-30.el7_3.6

Dependency Updated:
  audit.x86_64 0:2.6.5-3.el7                           audit-libs.x86_64 0:2.6.5-3.el7
  libgudev1.x86_64 0:219-30.el7_3.6                    libselinux.x86_64 0:2.5-6.el7
  libselinux-python.x86_64 0:2.5-6.el7                 libselinux-utils.x86_64 0:2.5-6.el7
  libsemanage.x86_64 0:2.5-5.1.el7_3                   libsepol.x86_64 0:2.5-6.el7
  policycoreutils.x86_64 0:2.5-11.el7_3                selinux-policy.noarch 0:3.13.1-102.el7_3.13
  selinux-policy-targeted.noarch 0:3.13.1-102.el7_3.13 systemd-libs.x86_64 0:219-30.el7_3.6
  systemd-sysv.x86_64 0:219-30.el7_3.6

Complete!
[vagrant@localhost ~]$

hello world

[vagrant@localhost ~]$ sudo docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
[vagrant@localhost ~]$ sudo docker run hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
78445dd45222: Pull complete
Digest: sha256:c5515758d4c5e1e838e9cd307f6c6a0d620b5e07e6f927b07d05f6d12a1ac8d7
Status: Downloaded newer image for hello-world:latest

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.
 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://cloud.docker.com/

For more examples and ideas, visit:
 https://docs.docker.com/engine/userguide/

[vagrant@localhost ~]$

setting

[vagrant@localhost ~]$ sudo systemctl enable docker
Created symlink from /etc/systemd/system/multi-user.target.wants/docker.service to /usr/lib/systemd/system/docker.service.
[vagrant@localhost ~]$
[vagrant@localhost ~]$ sudo groupadd docker
groupadd: group 'docker' already exists
[vagrant@localhost ~]$ id
uid=1000(vagrant) gid=1000(vagrant) groups=1000(vagrant)
[vagrant@localhost ~]$ sudo usermod -aG docker $USER
[vagrant@localhost ~]$

after re-login

[vagrant@localhost ~]$ id
uid=1000(vagrant) gid=1000(vagrant) groups=1000(vagrant),992(docker)
[vagrant@localhost ~]$

resize file system in Cent OS 7

ref:Create Physical volume in Linux CentOS - AKAI TSUKI

  1. add physical volume to volume group
  2. expand the logical volume
  3. resize file system size

Add Physical Volume to Volume Group

before

# pvs
  PV         VG Fmt  Attr PSize  PFree
  /dev/sda2  cl lvm2 a--  37.00g  4.00m
  /dev/sda3     lvm2 ---  15.00g 15.00g
  /dev/sda4     lvm2 ---  27.00g 27.00g
#

# vgs
  VG #PV #LV #SN Attr   VSize  VFree
  cl   1   2   0 wz--n- 37.00g 4.00m
#

vgextend

# vgextend cl /dev/sda3
  Volume group "cl" successfully extended
#

after

# pvs
  PV         VG Fmt  Attr PSize  PFree
  /dev/sda2  cl lvm2 a--  37.00g  4.00m
  /dev/sda3  cl lvm2 a--  15.00g 15.00g
  /dev/sda4     lvm2 ---  27.00g 27.00g
#

# vgs
  VG #PV #LV #SN Attr   VSize  VFree
  cl   2   2   0 wz--n- 51.99g 15.00g
#

expand the logical volume

before

# vgs
  VG #PV #LV #SN Attr   VSize  VFree
  cl   2   2   0 wz--n- 51.99g 15.00g
#

# lvs
  LV   VG Attr       LSize  Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  root cl -wi-ao---- 34.99g
  swap cl -wi-ao----  2.00g
#

lvextend

# lvextend -l +100%FREE /dev/cl/root
  Size of logical volume cl/root changed from 34.99 GiB (8958 extents) to 49.99 GiB (12798 extents).
  Logical volume cl/root successfully resized.
#

after

# vgs
  VG #PV #LV #SN Attr   VSize  VFree
  cl   2   2   0 wz--n- 51.99g    0
#

# lvs
  LV   VG Attr       LSize  Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  root cl -wi-ao---- 49.99g
  swap cl -wi-ao----  2.00g
#

resize file system size.

before

# df -Tkh
Filesystem          Type      Size  Used Avail Use% Mounted on
/dev/mapper/cl-root xfs        35G  1.2G   34G   4% /
devtmpfs            devtmpfs  1.9G     0  1.9G   0% /dev
tmpfs               tmpfs     1.9G     0  1.9G   0% /dev/shm
tmpfs               tmpfs     1.9G  8.4M  1.9G   1% /run
tmpfs               tmpfs     1.9G     0  1.9G   0% /sys/fs/cgroup
/dev/sda1           xfs      1014M  182M  833M  18% /boot
tmpfs               tmpfs     380M     0  380M   0% /run/user/0
#

xfs_growfs

# xfs_growfs /
meta-data=/dev/mapper/cl-root    isize=512    agcount=4, agsize=2293248 blks
         =                       sectsz=512   attr=2, projid32bit=1
         =                       crc=1        finobt=0 spinodes=0
data     =                       bsize=4096   blocks=9172992, imaxpct=25
         =                       sunit=0      swidth=0 blks
naming   =version 2              bsize=4096   ascii-ci=0 ftype=1
log      =internal               bsize=4096   blocks=4479, version=2
         =                       sectsz=512   sunit=0 blks, lazy-count=1
realtime =none                   extsz=4096   blocks=0, rtextents=0
data blocks changed from 9172992 to 13105152
#

after

# df -Tkh
Filesystem          Type      Size  Used Avail Use% Mounted on
/dev/mapper/cl-root xfs        50G  1.2G   49G   3% /
devtmpfs            devtmpfs  1.9G     0  1.9G   0% /dev
tmpfs               tmpfs     1.9G     0  1.9G   0% /dev/shm
tmpfs               tmpfs     1.9G  8.4M  1.9G   1% /run
tmpfs               tmpfs     1.9G     0  1.9G   0% /sys/fs/cgroup
/dev/sda1           xfs      1014M  182M  833M  18% /boot
tmpfs               tmpfs     380M     0  380M   0% /run/user/0
#

Create Physical volume in Linux CentOS

Check disk mount and type with df

# df -khT
Filesystem          Type      Size  Used Avail Use% Mounted on
/dev/mapper/cl-root xfs        35G  1.2G   34G   4% /
devtmpfs            devtmpfs  1.9G     0  1.9G   0% /dev
tmpfs               tmpfs     1.9G     0  1.9G   0% /dev/shm
tmpfs               tmpfs     1.9G  8.3M  1.9G   1% /run
tmpfs               tmpfs     1.9G     0  1.9G   0% /sys/fs/cgroup
/dev/sda1           xfs      1014M  182M  833M  18% /boot
tmpfs               tmpfs     380M     0  380M   0% /run/user/0
#

I created LVM partiation. Create LVM type partition in Linux CentOS 7 by fdisk - AKAI TSUKI

before

# fdisk -l

Disk /dev/sda: 85.9 GB, 85899345920 bytes, 167772160 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x000b4090

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048     2099199     1048576   83  Linux
/dev/sda2         2099200    79691775    38796288   8e  Linux LVM
#

after

# fdisk -l /dev/sda

Disk /dev/sda: 85.9 GB, 85899345920 bytes, 167772160 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x000b4090

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048     2099199     1048576   83  Linux
/dev/sda2         2099200    79691775    38796288   8e  Linux LVM
/dev/sda3        79691776   111149055    15728640   8e  Linux LVM
/dev/sda4       111149056   167772159    28311552   8e  Linux LVM
#

create PV

After create these partiation, I reboot server and create PV as follows:

# pvcreate /dev/sda3
  Physical volume "/dev/sda3" successfully created.
# pvcreate /dev/sda4
  Physical volume "/dev/sda4" successfully created.
# pvs
  PV         VG Fmt  Attr PSize  PFree
  /dev/sda2  cl lvm2 a--  37.00g  4.00m
  /dev/sda3     lvm2 ---  15.00g 15.00g
  /dev/sda4     lvm2 ---  27.00g 27.00g
#

Create LVM type partition in Linux CentOS 7 by fdisk

create /dev/sda3

# fdisk /dev/sda
Welcome to fdisk (util-linux 2.23.2).

Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.


Command (m for help): p

Disk /dev/sda: 85.9 GB, 85899345920 bytes, 167772160 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x000b4090

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048     2099199     1048576   83  Linux
/dev/sda2         2099200    79691775    38796288   8e  Linux LVM

Command (m for help): n
Partition type:
   p   primary (2 primary, 0 extended, 2 free)
   e   extended
Select (default p): p
Partition number (3,4, default 3): 3
First sector (79691776-167772159, default 79691776): 
Using default value 79691776
Last sector, +sectors or +size{K,M,G} (79691776-167772159, default 167772159): +15G
Partition 3 of type Linux and of size 15 GiB is set

Command (m for help): p

Disk /dev/sda: 85.9 GB, 85899345920 bytes, 167772160 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x000b4090

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048     2099199     1048576   83  Linux
/dev/sda2         2099200    79691775    38796288   8e  Linux LVM
/dev/sda3        79691776   111149055    15728640   83  Linux

Command (m for help): t
Partition number (1-3, default 3): 3
Hex code (type L to list all codes): 8e
Changed type of partition 'Linux' to 'Linux LVM'

Command (m for help): p

Disk /dev/sda: 85.9 GB, 85899345920 bytes, 167772160 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x000b4090

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048     2099199     1048576   83  Linux
/dev/sda2         2099200    79691775    38796288   8e  Linux LVM
/dev/sda3        79691776   111149055    15728640   8e  Linux LVM

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table. The new table will be used at
the next reboot or after you run partprobe(8) or kpartx(8)
Syncing disks.
#

create /dev/sda4

# fdisk /dev/sda
Welcome to fdisk (util-linux 2.23.2).

Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.


Command (m for help): n
Partition type:
   p   primary (3 primary, 0 extended, 1 free)
   e   extended
Select (default e): p
Selected partition 4
First sector (111149056-167772159, default 111149056): 
Using default value 111149056
Last sector, +sectors or +size{K,M,G} (111149056-167772159, default 167772159): 
Using default value 167772159
Partition 4 of type Linux and of size 27 GiB is set

Command (m for help): p

Disk /dev/sda: 85.9 GB, 85899345920 bytes, 167772160 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x000b4090

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048     2099199     1048576   83  Linux
/dev/sda2         2099200    79691775    38796288   8e  Linux LVM
/dev/sda3        79691776   111149055    15728640   8e  Linux LVM
/dev/sda4       111149056   167772159    28311552   83  Linux

Command (m for help): t
Partition number (1-4, default 4): 
Hex code (type L to list all codes): 8e
Changed type of partition 'Linux' to 'Linux LVM'

Command (m for help): p

Disk /dev/sda: 85.9 GB, 85899345920 bytes, 167772160 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x000b4090

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048     2099199     1048576   83  Linux
/dev/sda2         2099200    79691775    38796288   8e  Linux LVM
/dev/sda3        79691776   111149055    15728640   8e  Linux LVM
/dev/sda4       111149056   167772159    28311552   8e  Linux LVM

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table. The new table will be used at
the next reboot or after you run partprobe(8) or kpartx(8)
Syncing disks.
#

Use docker container for ssh test.

https://hub.docker.com/r/jdeathe/centos-ssh/

[root@localhost ~]# docker run -d \
>   --name ssh.pool-1.1.1 \
>   -p 2020:22 \
>   jdeathe/centos-ssh:centos-7
Unable to find image 'jdeathe/centos-ssh:centos-7' locally
centos-7: Pulling from jdeathe/centos-ssh
45a2e645736c: Already exists
c0584d31d0c7: Pull complete
312baf228c08: Pull complete
1a49aeb1a2d6: Pull complete
c94e1784cd5f: Pull complete
8f0d8715c20d: Pull complete
3ad9eac7cf9a: Pull complete
f0808ae00a9e: Pull complete
d2342971ceac: Pull complete
8b1c26542222: Pull complete
441ff7da597d: Pull complete
a6b9b592ad30: Pull complete
f1e027d49efe: Pull complete
Digest: sha256:f78be125637532943583ed4d28a1a1646db882a0f33bfa9c116de1ab1e6ee211
Status: Downloaded newer image for jdeathe/centos-ssh:centos-7
1a0afe299c430404697d6b7c4030b221083089dd77e2325e1f0f5c59031b5537
[root@localhost ~]#
[root@localhost ~]# docker ps
CONTAINER ID        IMAGE                         COMMAND                  CREATED             STATUS              PORTS                  NAMES
1a0afe299c43        jdeathe/centos-ssh:centos-7   "/usr/bin/supervisord"   24 seconds ago      Up 22 seconds       0.0.0.0:2020->22/tcp   ssh.pool-1.1.1
febbb71e5f22        centos:7                      "tail -f /dev/null"      2 weeks ago         Up About an hour                           demo
[root@localhost ~]#

To check infomation(password)

[root@localhost ~]# docker logs ssh.pool-1.1.1

and I get the insecure private key.

[root@localhost ~]# curl -LSs \
>   https://raw.githubusercontent.com/mitchellh/vagrant/master/keys/vagrant \
>   > id_rsa_insecure
[root@localhost ~]# chmod 600 id_rsa_insecure
[root@localhost ~]#

then, I can connect to container by ssh.

[root@localhost ~]# ssh -p 2020 -i id_rsa_insecure \
>   app-admin@localhost
The authenticity of host '[localhost]:2020 ([::1]:2020)' can't be established.
ECDSA key fingerprint is a2:9e:09:54:56:d2:6c:37:69:40:6d:fa:8c:d8:64:e3.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '[localhost]:2020' (ECDSA) to the list of known hosts.
[app-admin@1a0afe299c43 ~]$ ls -l
total 0
[app-admin@1a0afe299c43 ~]$

and directly,

[root@localhost ~]# docker inspect 1a0afe299c43 |grep IPAddress
            "SecondaryIPAddresses": null,
            "IPAddress": "172.17.0.3",
                    "IPAddress": "172.17.0.3",
[root@localhost ~]# ssh -i id_rsa_insecure app-admin@172.17.0.3
The authenticity of host '172.17.0.3 (172.17.0.3)' can't be established.
ECDSA key fingerprint is a2:9e:09:54:56:d2:6c:37:69:40:6d:fa:8c:d8:64:e3.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '172.17.0.3' (ECDSA) to the list of known hosts.
Last login: Sun Jan 15 17:24:23 2017 from 172.17.0.1
[app-admin@1a0afe299c43 ~]$

What is dularion/streama?

It's like Netflix, but self-hosted! http://dularion.github.io/streama/ github.com

confirm package(apt) version in Ubuntu

I confirmed version of zfs(zfsutils-linux) and lxd.

ubu@ubuntu16:~$ apt-cache policy zfsutils-linux
zfsutils-linux:
  Installed: 0.6.5.6-0ubuntu15
  Candidate: 0.6.5.6-0ubuntu15
  Version table:
 *** 0.6.5.6-0ubuntu15 500
        500 http://jp.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     0.6.5.6-0ubuntu8 500
        500 http://jp.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
ubu@ubuntu16:~$
ubu@ubuntu16:~$ apt-cache policy lxd
lxd:
  Installed: 2.0.8-0ubuntu1~ubuntu16.04.2
  Candidate: 2.0.8-0ubuntu1~ubuntu16.04.2
  Version table:
     2.7-0ubuntu2~ubuntu16.04.1 100
        100 http://jp.archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages
 *** 2.0.8-0ubuntu1~ubuntu16.04.2 500
        500 http://jp.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     2.0.2-0ubuntu1~16.04.1 500
        500 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages
     2.0.0-0ubuntu4 500
        500 http://jp.archive.ubuntu.com/ubuntu xenial/main amd64 Packages
ubu@ubuntu16:~$