Skip to content
This repository has been archived by the owner on Jun 6, 2022. It is now read-only.

Failure to install Docker version 17.03.1.ce in example module ssh-011-install-docker-fixed-version-centos7 #238

Closed
athrane opened this issue Sep 23, 2018 · 0 comments

Comments

@athrane
Copy link
Owner

athrane commented Sep 23, 2018

Installation of Docker 17.03.1.ce using the example module ssh-011-install-docker-fixed-version-centos7 fails with errors.

Error out:

warning: /var/cache/yum/x86_64/7/dockerrepo/packages/docker-engine-selinux-17.05.0.ce-1.el7.centos.noarch.rpm: Header V4 RSA/SHA512 Signature, key ID 2c52609d: NOKEY
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
Non-fatal POSTIN scriptlet failure in rpm package docker-engine-selinux-17.05.0.ce-1.el7.centos.noarch

Standard out:

Installing : docker-engine-selinux-17.05.0.ce-1.el7.centos.noarch 1/3
--
Re-declaration of type docker_t
Failed to create node
Bad type declaration at /etc/selinux/targeted/tmp/modules/400/docker/cil:1
/usr/sbin/semodule: Failed!
restorecon: lstat(/var/lib/docker) failed: No such file or directory
warning: %post(docker-engine-selinux-17.05.0.ce-1.el7.centos.noarch) scriptlet failed, exit status 255

Relevant link: moby/moby#33930 :
A new obsoletes restriction was introduced in docker-ce 17.06.0 and it looks like the yum repo is applying it to all versions of the docker-ce indiscriminately. To work around this when installing older versions of docker-ce, you can pass a flag to ignore obsoletes: --setopt=obsoletes=0

@athrane athrane changed the title Failure to install legacy Docker version in example module ssh-011-install-docker-fixed-version-centos7 Failure to install Docker version 17.03.1.ce in example module ssh-011-install-docker-fixed-version-centos7 Sep 23, 2018
athrane added a commit that referenced this issue Sep 23, 2018
ssh-011-install-docker-fixed-version-centos7, closes #238
@athrane athrane added this to the 1.11.0 milestone Sep 23, 2018
@athrane athrane closed this as completed in efbbb31 Feb 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant