Start a new Amazon linux instance, and docker v1.7.1 has been installed.
But when I try to install docker-engine
, I got below error:
[root@ip-172-31-2-127 init.d]# yum info docker-engine
Loaded plugins: priorities, update-motd, upgrade-helper
Available Packages
Name : docker-engine
Arch : x86_64
Version : 1.9.1
Release : 1.el7.centos
Size : 8.2 M
Repo : dockerrepo
Summary : The open-source application container engine
URL : https://dockerproject.org
License : ASL 2.0
Description : Docker is an open source project to build, ship and run any application as a
: lightweight container.
:
: Docker containers are both hardware-agnostic and platform-agnostic. This means
: they can run anywhere, from your laptop to the largest EC2 compute instance and
: everything in between - and they don't require you to use a particular
: language, framework or packaging system. That makes them great building blocks
: for deploying and scaling web apps, databases, and backend services without
: depending on a particular stack or provider.
$ yum install docker-engine
...
---> Package m4.x86_64 0:1.4.16-9.10.amzn1 will be installed
---> Package setools-libs.x86_64 0:3.3.7-34.23.amzn1 will be installed
--> Processing Conflict: docker-engine-1.9.1-1.el7.centos.x86_64 conflicts docker-io
--> Processing Conflict: docker-engine-1.9.1-1.el7.centos.x86_64 conflicts docker
--> Finished Dependency Resolution
Error: Package: docker-engine-1.9.1-1.el7.centos.x86_64 (dockerrepo)
Requires: libsystemd-journal.so.0(LIBSYSTEMD_JOURNAL_38)(64bit)
Error: Package: docker-engine-1.9.1-1.el7.centos.x86_64 (dockerrepo)
Requires: libsystemd-journal.so.0(LIBSYSTEMD_JOURNAL_201)(64bit)
Error: docker-engine conflicts with docker-1.7.1-1.9.amzn1.x86_64
Error: Package: docker-engine-selinux-1.9.1-1.el7.centos.noarch (dockerrepo)
Requires: selinux-policy-targeted >= 3.13.1-23
Available: selinux-policy-targeted-3.10.0-98.23.amzn1.noarch (amzn-main)
selinux-policy-targeted = 3.10.0-98.23.amzn1
Error: Package: docker-engine-1.9.1-1.el7.centos.x86_64 (dockerrepo)
Requires: systemd-units
Error: Package: docker-engine-1.9.1-1.el7.centos.x86_64 (dockerrepo)
Requires: libsystemd-journal.so.0()(64bit)
Error: Package: docker-engine-1.9.1-1.el7.centos.x86_64 (dockerrepo)
Requires: selinux-policy >= 3.13.1-23
Available: selinux-policy-3.10.0-98.23.amzn1.noarch (amzn-main)
selinux-policy = 3.10.0-98.23.amzn1
Error: Package: docker-engine-1.9.1-1.el7.centos.x86_64 (dockerrepo)
Requires: libsystemd-id128.so.0()(64bit)
Error: Package: docker-engine-selinux-1.9.1-1.el7.centos.noarch (dockerrepo)
Requires: selinux-policy-base >= 3.13.1-23
Available: selinux-policy-minimum-3.10.0-98.23.amzn1.noarch (amzn-main)
selinux-policy-base = 3.10.0-98.23.amzn1
Available: selinux-policy-mls-3.10.0-98.23.amzn1.noarch (amzn-main)
selinux-policy-base = 3.10.0-98.23.amzn1
Available: selinux-policy-targeted-3.10.0-98.23.amzn1.noarch (amzn-main)
selinux-policy-base = 3.10.0-98.23.amzn1
Error: Package: docker-engine-1.9.1-1.el7.centos.x86_64 (dockerrepo)
Requires: selinux-policy >= 3.13.1-23
Installing: selinux-policy-3.10.0-98.23.amzn1.noarch (amzn-main)
selinux-policy = 3.10.0-98.23.amzn1
Error: Package: docker-engine-1.9.1-1.el7.centos.x86_64 (dockerrepo)
Requires: libsystemd-journal.so.0(LIBSYSTEMD_JOURNAL_196)(64bit)
Error: Package: docker-engine-1.9.1-1.el7.centos.x86_64 (dockerrepo)
Requires: libsystemd-journal.so.0(LIBSYSTEMD_JOURNAL_195)(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
[root@ip-172-31-2-127 init.d]#