```
[iyunv@test01 ~]# /usr/bin/dockerd
/usr/bin/dockerd: error while loading shared libraries: libsystemd.so.0: cannot open shared object file: No such file or directory
[iyunv@test01 ~]# find / -name libsystemd.so.0
find: ‘/proc/9409’: No such file or directory
find: ‘/proc/9410’: No such file or directory
c^C
[iyunv@test01 ~]# /usr/bin/dockerd
/usr/bin/dockerd: error while loading shared libraries: libsystemd.so.0: cannot open shared object file: No such file or directory
[iyunv@test01 ~]# /usr/bin/dockerd
/usr/bin/dockerd: error while loading shared libraries: libsystemd.so.0: cannot open shared object file: No such file or directory
[iyunv@test01 ~]# yum -y install libsystemd
Loaded plugins: fastestmirror
Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
file:///media/cdrom/repodata/repomd.xml: [Errno 14] curl#37 - "Couldn't open file /media/cdrom/repodata/repomd.xml"
Trying other mirror.
Loading mirror speeds from cached hostfile
package libsystemd available.
▽rror: Nothing to do
You have new mail in /var/spool/mail/root
[iyunv@test01 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/centos-root 27G 6.1G 21G 23% /
devtmpfs 7.8G 0 7.8G 0% /dev
tmpfs 7.8G 0 7.8G 0% /dev/shm
tmpfs 7.8G 121M 7.7G 2% /run
tmpfs 7.8G 0 7.8G 0% /sys/fs/cgroup
/dev/mapper/ftp_data-lv01 70G 33G 38G 47% /data/ftp
/dev/vda1 497M 120M 378M 24% /boot
[iyunv@test01 ~]# ls /etc/yum.repos.d/
bak local.repo
[iyunv@test01 ~]# more /etc/yum.repos.d/local.repo
[local]
name=CentOS-$releasever - Plus
baseurl=file:///media/cdrom
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
[iyunv@test01 ~]# vim /etc/yum.repos.d/
bak/ local.repo
[iyunv@test01 ~]# vim /etc/yum.repos.d/local.repo
[local]
name=CentOS-$releasever - Plus
baseurl=file:///media/cdrom
baseurl=http://10.42.187.246/centos7
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
~
~
"/etc/yum.repos.d/local.repo" 7L, 177C written
[iyunv@test01 ~]# yum -y install libsystemd
Loaded plugins: fastestmirror
Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
local | 3.6 kB 00:00:00
Loading mirror speeds from cached hostfile
No package libsystemd available.
Error: Nothing to do
[iyunv@test01 ~]# yum -y install libsys*
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Package libsysfs-2.1.0-16.el7.x86_64 already installed and latest version
Nothing to do
[iyunv@test01 ~]# yum list|grep systemd
systemd.x86_64 208-20.el7 @anaconda
systemd-libs.x86_64 208-20.el7 @anaconda
systemd-sysv.x86_64 208-20.el7 @anaconda
systemd.x86_64 219-30.el7 local
systemd-devel.x86_64 219-30.el7 local
systemd-libs.x86_64 219-30.el7 local
systemd-python.x86_64 219-30.el7 local
systemd-sysv.x86_64 219-30.el7 local
[iyunv@test01 ~]# yum install systemd-libs
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package systemd-libs.x86_64 0:208-20.el7 will be updated
--> Processing Dependency: systemd-libs = 208-20.el7 for package: systemd-208-20.el7.x86_64
---> Package systemd-libs.x86_64 0:219-30.el7 will be an update
--> Running transaction check
---> Package systemd.x86_64 0:208-20.el7 will be updated
--> Processing Dependency: systemd = 208-20.el7 for package: systemd-sysv-208-20.el7.x86_64
--> Processing Dependency: systemd = 208-20.el7 for package: libgudev1-208-20.el7.x86_64
---> Package systemd.x86_64 0:219-30.el7 will be an update
--> Processing Dependency: kmod >= 18-4 for package: systemd-219-30.el7.x86_64
--> Running transaction check
---> Package kmod.x86_64 0:14-10.el7 will be updated
---> Package kmod.x86_64 0:20-9.el7 will be an update
---> Package libgudev1.x86_64 0:208-20.el7 will be updated
---> Package libgudev1.x86_64 0:219-30.el7 will be an update
--> Processing Dependency: glib2 >= 2.42 for package: libgudev1-219-30.el7.x86_64
---> Package systemd-sysv.x86_64 0:208-20.el7 will be updated
---> Package systemd-sysv.x86_64 0:219-30.el7 will be an update
--> Running transaction check
---> Package glib2.x86_64 0:2.40.0-4.el7 will be updated
---> Package glib2.x86_64 0:2.46.2-4.el7 will be an update
--> Processing Conflict: systemd-219-30.el7.x86_64 conflicts initscripts < 9.49.28-1
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package initscripts.x86_64 0:9.49.24-1.el7 will be updated
---> Package initscripts.x86_64 0:9.49.37-1.el7 will be an update
--> Processing Conflict: systemd-219-30.el7.x86_64 conflicts dracut < 033-243
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package dracut.x86_64 0:033-240.el7 will be updated
--> Processing Dependency: dracut = 033-240.el7 for package: dracut-config-rescue-033-240.el7.x86_64
--> Processing Dependency: dracut = 033-240.el7 for package: dracut-network-033-240.el7.x86_64
---> Package dracut.x86_64 0:033-463.el7 will be an update
--> Running transaction check
---> Package dracut-config-rescue.x86_64 0:033-240.el7 will be updated
---> Package dracut-config-rescue.x86_64 0:033-463.el7 will be an update
---> Package dracut-network.x86_64 0:033-240.el7 will be updated
---> Package dracut-network.x86_64 0:033-463.el7 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
==================================================================================================================================================
Package Arch Version Repository Size
==================================================================================================================================================
Updating:
dracut x86_64 033-463.el7 local 317 k
initscripts x86_64 9.49.37-1.el7 local 431 k
systemd-libs x86_64 219-30.el7 local 367 k
Updating for dependencies:
dracut-config-rescue x86_64 033-463.el7 local 54 k
dracut-network x86_64 033-463.el7 local 96 k
glib2 x86_64 2.46.2-4.el7 local 2.3 M
kmod x86_64 20-9.el7 local 115 k
libgudev1 x86_64 219-30.el7 local 75 k
systemd x86_64 219-30.el7 local 5.2 M
systemd-sysv x86_64 219-30.el7 local 62 k
Complete!
[iyunv@test01 ~]# /usr/bin/dockerd
/usr/bin/dockerd: error while loading shared libraries: libseccomp.so.2: cannot open shared object file: No such file or directory
[iyunv@test01 ~]# yum list|grep systemd
systemd.x86_64 219-30.el7 @local
systemd-libs.x86_64 219-30.el7 @local
systemd-sysv.x86_64 219-30.el7 @local
systemd-devel.x86_64 219-30.el7 local
systemd-python.x86_64 219-30.el7 local
[iyunv@test01 ~]# yum -y install systemd-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package systemd-devel.x86_64 0:219-30.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==================================================================================================================================================
Package Arch Version Repository Size
==================================================================================================================================================
Installing:
systemd-devel x86_64 219-30.el7 local 177 k
Total download size: 177 k
Installed size: 337 k
Downloading packages:
systemd-devel-219-30.el7.x86_64.rpm | 177 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : systemd-devel-219-30.el7.x86_64 1/1
Verifying : systemd-devel-219-30.el7.x86_64 1/1
Installed:
systemd-devel.x86_64 0:219-30.el7
Complete!
[iyunv@test01 ~]# /usr/bin/dockerd
/usr/bin/dockerd: error while loading shared libraries: libseccomp.so.2: cannot open shared object file: No such file or directory
[iyunv@test01 ~]# yum -y install seccomp
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
No package seccomp available.
Error: Nothing to do
[iyunv@test01 ~]# yum -y install sec
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
No package sec available.
Error: Nothing to do
[iyunv@test01 ~]# yum -y install libseccomp
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package libseccomp.x86_64 0:2.3.1-2.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==================================================================================================================================================
Package Arch Version Repository Size
==================================================================================================================================================
Installing:
libseccomp x86_64 2.3.1-2.el7 local 56 k
Total download size: 56 k
Installed size: 297 k
Downloading packages:
libseccomp-2.3.1-2.el7.x86_64.rpm | 56 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : libseccomp-2.3.1-2.el7.x86_64 1/1
Verifying : libseccomp-2.3.1-2.el7.x86_64 1/1
Installed:
libseccomp.x86_64 0:2.3.1-2.el7
Complete!
[iyunv@test01 ~]# /usr/bin/dockerd
/usr/bin/dockerd: /lib64/libdevmapper.so.1.02: version `DM_1_02_97' not found (required by /usr/bin/dockerd)
[iyunv@test01 ~]# yum -y install libdevmapper
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
No package libdevmapper available.
Error: Nothing to do
[iyunv@test01 ~]# yum list|grep mapper
device-mapper.x86_64 7:1.02.93-3.el7 @anaconda
device-mapper-event.x86_64 7:1.02.93-3.el7 @anaconda
device-mapper-event-libs.x86_64 7:1.02.93-3.el7 @anaconda
device-mapper-libs.x86_64 7:1.02.93-3.el7 @anaconda
device-mapper-persistent-data.x86_64 0.4.1-2.el7 @anaconda
device-mapper.x86_64 7:1.02.135-1.el7 local
device-mapper-event.x86_64 7:1.02.135-1.el7 local
device-mapper-event-libs.x86_64 7:1.02.135-1.el7 local
device-mapper-libs.x86_64 7:1.02.135-1.el7 local
device-mapper-multipath.x86_64 0.4.9-99.el7 local
device-mapper-multipath-libs.x86_64 0.4.9-99.el7 local
device-mapper-persistent-data.x86_64 0.6.3-1.el7 local
[iyunv@test01 ~]# yum -y install device-mapper-libs
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package device-mapper-libs.x86_64 7:1.02.93-3.el7 will be updated
--> Processing Dependency: device-mapper-libs = 7:1.02.93-3.el7 for package: 7:device-mapper-1.02.93-3.el7.x86_64
---> Package device-mapper-libs.x86_64 7:1.02.135-1.el7 will be an update
--> Running transaction check
---> Package device-mapper.x86_64 7:1.02.93-3.el7 will be updated
--> Processing Dependency: device-mapper = 7:1.02.93-3.el7 for package: 7:device-mapper-event-1.02.93-3.el7.x86_64
---> Package device-mapper.x86_64 7:1.02.135-1.el7 will be an update
--> Running transaction check
---> Package device-mapper-event.x86_64 7:1.02.93-3.el7 will be updated
--> Processing Dependency: device-mapper-event = 7:1.02.93-3.el7 for package: 7:lvm2-libs-2.02.115-3.el7.x86_64
---> Package device-mapper-event.x86_64 7:1.02.135-1.el7 will be an update
--> Processing Dependency: device-mapper-event-libs = 7:1.02.135-1.el7 for package: 7:device-mapper-event-1.02.135-1.el7.x86_64
--> Running transaction check
---> Package device-mapper-event-libs.x86_64 7:1.02.93-3.el7 will be updated
---> Package device-mapper-event-libs.x86_64 7:1.02.135-1.el7 will be an update
---> Package lvm2-libs.x86_64 7:2.02.115-3.el7 will be updated
--> Processing Dependency: lvm2-libs = 7:2.02.115-3.el7 for package: 7:lvm2-2.02.115-3.el7.x86_64
---> Package lvm2-libs.x86_64 7:2.02.166-1.el7 will be an update
--> Running transaction check
---> Package lvm2.x86_64 7:2.02.115-3.el7 will be updated
---> Package lvm2.x86_64 7:2.02.166-1.el7 will be an update
--> Processing Dependency: device-mapper-persistent-data >= 0.6.3-1 for package: 7:lvm2-2.02.166-1.el7.x86_64
--> Running transaction check
---> Package device-mapper-persistent-data.x86_64 0:0.4.1-2.el7 will be updated
---> Package device-mapper-persistent-data.x86_64 0:0.6.3-1.el7 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
==================================================================================================================================================
Package Arch Version Repository Size
==================================================================================================================================================
Updating:
device-mapper-libs x86_64 7:1.02.135-1.el7 local 333 k
Updating for dependencies:
device-mapper x86_64 7:1.02.135-1.el7 local 269 k
device-mapper-event x86_64 7:1.02.135-1.el7 local 177 k
device-mapper-event-libs x86_64 7:1.02.135-1.el7 local 177 k
device-mapper-persistent-data x86_64 0.6.3-1.el7 local 368 k
lvm2 x86_64 7:2.02.166-1.el7 local 1.1 M
lvm2-libs x86_64 7:2.02.166-1.el7 local 983 k
Complete!
[iyunv@test01 ~]# /usr/bin/dockerd
INFO[0000] libcontainerd: new containerd process, pid: 11630
WARN[0001] overlay: the backing xfs filesystem is formatted without d_type support, which leads to incorrect behavior. Reformat the filesystem with ftype=1 to enable d_type support. Running without d_type support will no longer be supported in Docker 17.12.
INFO[0001] Graph migration to content-addressability took 0.00 seconds
WARN[0001] mountpoint for pids not found
INFO[0001] Loading containers: start.
WARN[0001] Running modprobe bridge br_netfilter failed with message: modprobe: WARNING: Module br_netfilter not found.
insmod /lib/modules/3.10.0-229.el7.x86_64/kernel/net/llc/llc.ko
insmod /lib/modules/3.10.0-229.el7.x86_64/kernel/net/802/stp.ko
insmod /lib/modules/3.10.0-229.el7.x86_64/kernel/net/bridge/bridge.ko
, error: exit status 1
INFO[0001] Firewalld running: false
INFO[0001] Default bridge (docker0) is assigned with an IP address 172.17.0.0/16. Daemon option --bip can be used to set a preferred IP address
INFO[0001] Loading containers: done.
```