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 ~]$

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:~$

Install lxd in Ubuntu

I executed the command "sudo apt install zfs lxd" in Ubuntu 16.04. But...

lxd is already the newest version (2.0.8-0ubuntu1~ubuntu16.04.2).

ubu@ubuntu16:~$ sudo apt install zfs lxd
[sudo] password for ubu:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'zfsutils-linux' instead of 'zfs'
lxd is already the newest version (2.0.8-0ubuntu1~ubuntu16.04.2).
The following additional packages will be installed:
  libnvpair1linux libuutil1linux libzfs2linux libzpool2linux zfs-doc zfs-zed
Suggested packages:
  default-mta | mail-transport-agent samba-common-bin nfs-kernel-server zfs-initramfs
The following NEW packages will be installed:
  libnvpair1linux libuutil1linux libzfs2linux libzpool2linux zfs-doc zfs-zed zfsutils-linux
0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 896 kB of archives.
After this operation, 2,902 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://jp.archive.ubuntu.com/ubuntu xenial-updates/main amd64 zfs-doc all 0.6.5.6-0ubuntu15 [49.9 kB]
Get:2 http://jp.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libuutil1linux amd64 0.6.5.6-0ubuntu15 [27.4 kB]
Get:3 http://jp.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libnvpair1linux amd64 0.6.5.6-0ubuntu15 [23.4 kB]
Get:4 http://jp.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libzpool2linux amd64 0.6.5.6-0ubuntu15 [384 kB]
Get:5 http://jp.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libzfs2linux amd64 0.6.5.6-0ubuntu15 [106 kB]
Get:6 http://jp.archive.ubuntu.com/ubuntu xenial-updates/main amd64 zfsutils-linux amd64 0.6.5.6-0ubuntu15 [276 kB]
Get:7 http://jp.archive.ubuntu.com/ubuntu xenial-updates/main amd64 zfs-zed amd64 0.6.5.6-0ubuntu15 [29.6 kB]
Fetched 896 kB in 0s (1,683 kB/s)
Selecting previously unselected package zfs-doc.
(Reading database ... 91850 files and directories currently installed.)
Preparing to unpack .../zfs-doc_0.6.5.6-0ubuntu15_all.deb ...
Unpacking zfs-doc (0.6.5.6-0ubuntu15) ...
Selecting previously unselected package libuutil1linux.
Preparing to unpack .../libuutil1linux_0.6.5.6-0ubuntu15_amd64.deb ...
Unpacking libuutil1linux (0.6.5.6-0ubuntu15) ...
Selecting previously unselected package libnvpair1linux.
Preparing to unpack .../libnvpair1linux_0.6.5.6-0ubuntu15_amd64.deb ...
Unpacking libnvpair1linux (0.6.5.6-0ubuntu15) ...
Selecting previously unselected package libzpool2linux.
Preparing to unpack .../libzpool2linux_0.6.5.6-0ubuntu15_amd64.deb ...
Unpacking libzpool2linux (0.6.5.6-0ubuntu15) ...
Selecting previously unselected package libzfs2linux.
Preparing to unpack .../libzfs2linux_0.6.5.6-0ubuntu15_amd64.deb ...
Unpacking libzfs2linux (0.6.5.6-0ubuntu15) ...
Selecting previously unselected package zfsutils-linux.
Preparing to unpack .../zfsutils-linux_0.6.5.6-0ubuntu15_amd64.deb ...
Unpacking zfsutils-linux (0.6.5.6-0ubuntu15) ...
Selecting previously unselected package zfs-zed.
Preparing to unpack .../zfs-zed_0.6.5.6-0ubuntu15_amd64.deb ...
Unpacking zfs-zed (0.6.5.6-0ubuntu15) ...
Processing triggers for libc-bin (2.23-0ubuntu5) ...
Processing triggers for initramfs-tools (0.122ubuntu8.7) ...
update-initramfs: Generating /boot/initrd.img-4.4.0-57-generic
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for systemd (229-4ubuntu13) ...
Processing triggers for ureadahead (0.100.0-19) ...
Setting up zfs-doc (0.6.5.6-0ubuntu15) ...
Setting up libuutil1linux (0.6.5.6-0ubuntu15) ...
Setting up libnvpair1linux (0.6.5.6-0ubuntu15) ...
Setting up libzpool2linux (0.6.5.6-0ubuntu15) ...
Setting up libzfs2linux (0.6.5.6-0ubuntu15) ...
Setting up zfsutils-linux (0.6.5.6-0ubuntu15) ...
zfs-import-cache.service is a disabled or a static unit, not starting it.
zfs-import-scan.service is a disabled or a static unit, not starting it.
zfs-mount.service is a disabled or a static unit, not starting it.
Processing triggers for initramfs-tools (0.122ubuntu8.7) ...
update-initramfs: Generating /boot/initrd.img-4.4.0-57-generic
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
Setting up zfs-zed (0.6.5.6-0ubuntu15) ...
zed.service is a disabled or a static unit, not starting it.
Processing triggers for libc-bin (2.23-0ubuntu5) ...
Processing triggers for systemd (229-4ubuntu13) ...
Processing triggers for ureadahead (0.100.0-19) ...
ubu@ubuntu16:~$

ubu@ubuntu16:~$ id
uid=1000(ubu) gid=1000(ubu) groups=1000(ubu),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),110(lxd),115(lpadmin),116(sambashare)
ubu@ubuntu16:~$ newgrp lxd
ubu@ubuntu16:~$ id
uid=1000(ubu) gid=110(lxd) groups=110(lxd),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),115(lpadmin),116(sambashare),1000(ubu)
ubu@ubuntu16:~$

ubu@ubuntu16:~$ lxd --version
2.0.8
ubu@ubuntu16:~$ lxc --version
2.0.8
ubu@ubuntu16:~$

apt update in ubuntu

I executed the command "sudo apt update".

ubu@ubuntu16:~$ sudo apt update
[sudo] password for ubu:
Hit:1 http://jp.archive.ubuntu.com/ubuntu xenial InRelease
Get:2 http://jp.archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Get:3 http://jp.archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
Get:4 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Get:5 http://jp.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [445 kB]
Get:6 http://jp.archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages [438 kB]
Fetched 1,190 kB in 1s (897 kB/s)
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
ubu@ubuntu16:~$

and then I executed the command "sudo dpkg --configure -a".

ubu@ubuntu16:~$ sudo dpkg --configure -a
Setting up libapt-inst2.0:amd64 (1.2.15ubuntu0.2) ...
Processing triggers for ufw (0.35-0ubuntu2) ...
Setting up libisc160:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.2) ...
Setting up libssl1.0.0:amd64 (1.0.2g-1ubuntu4.5) ...
Setting up libisc-export160 (1:9.10.3.dfsg.P4-8ubuntu1.2) ...
Processing triggers for mime-support (3.59ubuntu1) ...
Processing triggers for ureadahead (0.100.0-19) ...
Setting up apt-utils (1.2.15ubuntu0.2) ...
Setting up tzdata (2016j-0ubuntu0.16.04) ...

Current default time zone: 'Asia/Tokyo'
Local time is now:      Mon Jan  9 17:01:47 JST 2017.
Universal Time is now:  Mon Jan  9 08:01:47 UTC 2017.
Run 'dpkg-reconfigure tzdata' if you wish to change it.

Setting up libdns-export162 (1:9.10.3.dfsg.P4-8ubuntu1.2) ...
Setting up python3-problem-report (2.20.1-0ubuntu2.4) ...
Setting up linux-image-4.4.0-57-generic (4.4.0-57.78) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-57-generic /boot/vmlinuz-4.4.0-57-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-57-generic /boot/vmlinuz-4.4.0-57-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-57-generic
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 4.4.0-57-generic /boot/vmlinuz-4.4.0-57-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 4.4.0-57-generic /boot/vmlinuz-4.4.0-57-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.4.0-57-generic /boot/vmlinuz-4.4.0-57-generic
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.4.0-57-generic
Found initrd image: /boot/initrd.img-4.4.0-57-generic
Found linux image: /boot/vmlinuz-4.4.0-31-generic
Found initrd image: /boot/initrd.img-4.4.0-31-generic
done
Setting up libisccc140:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.2) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Setting up udev (229-4ubuntu10) ...
addgroup: The group `input' already exists as a system group. Exiting.
update-initramfs: deferring update (trigger activated)
Processing triggers for systemd (229-4ubuntu10) ...
Setting up liblwres141:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.2) ...
Setting up openssl (1.0.2g-1ubuntu4.5) ...
Setting up vim-common (2:7.4.1689-3ubuntu1.2) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for shared-mime-info (1.5-2ubuntu0.1) ...
Setting up vim-runtime (2:7.4.1689-3ubuntu1.2) ...
Setting up openssh-client (1:7.2p2-4ubuntu2.1) ...
Setting up linux-firmware (1.157.4) ...
Setting up libidn11:amd64 (1.32-3ubuntu1.1) ...
Setting up libdbus-1-3:amd64 (1.10.6-1ubuntu3.1) ...
Setting up libpython3.5-minimal:amd64 (3.5.2-2ubuntu0~16.04.1) ...
Setting up vim-tiny (2:7.4.1689-3ubuntu1.2) ...
Setting up libdns162:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.2) ...
Setting up libcurl3-gnutls:amd64 (7.47.0-1ubuntu2.2) ...
Setting up libpython3.5-stdlib:amd64 (3.5.2-2ubuntu0~16.04.1) ...
Setting up libisccfg140:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.2) ...
Setting up python3-apport (2.20.1-0ubuntu2.4) ...
Setting up python3.5-minimal (3.5.2-2ubuntu0~16.04.1) ...
Setting up openssh-sftp-server (1:7.2p2-4ubuntu2.1) ...
Setting up apport (2.20.1-0ubuntu2.4) ...
Setting up libbind9-140:amd64 (1:9.10.3.dfsg.P4-8ubuntu1.2) ...
Setting up dbus (1.10.6-1ubuntu3.1) ...
A reboot is required to replace the running dbus-daemon.
Please reboot the system when convenient.
Setting up bind9-host (1:9.10.3.dfsg.P4-8ubuntu1.2) ...
Setting up python3.5 (3.5.2-2ubuntu0~16.04.1) ...
Setting up apt-transport-https (1.2.15ubuntu0.2) ...
Setting up libpam-systemd:amd64 (229-4ubuntu10) ...
Setting up curl (7.47.0-1ubuntu2.2) ...
Setting up libpython3.5:amd64 (3.5.2-2ubuntu0~16.04.1) ...
Setting up dnsutils (1:9.10.3.dfsg.P4-8ubuntu1.2) ...
Setting up openssh-server (1:7.2p2-4ubuntu2.1) ...
Installing new version of config file /etc/network/if-up.d/openssh-server ...
Setting up vim (2:7.4.1689-3ubuntu1.2) ...
Setting up liblxc1 (2.0.5-0ubuntu1~ubuntu16.04.3) ...
Setting up lxc-common (2.0.5-0ubuntu1~ubuntu16.04.3) ...
Processing triggers for initramfs-tools (0.122ubuntu8.1) ...
update-initramfs: Generating /boot/initrd.img-4.4.0-57-generic
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
Processing triggers for libc-bin (2.23-0ubuntu3) ...
ubu@ubuntu16:~$

and I executed again.

ubu@ubuntu16:~$ sudo apt update
Hit:1 http://jp.archive.ubuntu.com/ubuntu xenial InRelease
Hit:2 http://jp.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:3 http://jp.archive.ubuntu.com/ubuntu xenial-backports InRelease
Get:4 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Fetched 102 kB in 1s (71.2 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
73 packages can be upgraded. Run 'apt list --upgradable' to see them.
ubu@ubuntu16:~$

network configuration for ubuntu

I use ubuntu 16.04. I configured interfaces file for static ip as follows:

ubu@ubuntu16:~$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto enp0s3
# iface enp0s3 inet dhcp
iface enp0s3 inet static
address 192.168.0.205
network 192.168.0.0
netmask 255.255.255.0
gateway 192.168.0.1
dns-nameservers 192.168.0.1 8.8.8.8
ubu@ubuntu16:~$