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

Fix Docker CE 17.03.x installation #83

Merged
merged 2 commits into from Aug 30, 2018
Merged

Fix Docker CE 17.03.x installation #83

merged 2 commits into from Aug 30, 2018

Conversation

scottslowe
Copy link
Contributor

Due to issues with some dependencies, Docker CE 17.03 installation on CentOS/RHEL 7 can't be accomplished using standard yum module. This PR fixes the installation by using a command module to run yum directly.

Addresses issue #72 (see conversation there for links to dependencies issues referenced above).

Modify ansible/roles/docker/tasks/redhat.yml to use command module to run yum command directly. This allows use of setopts=obsoletes=0, which fixes installation of Docker CE 17.03.x on CentOS/RHEL. Ubuntu is not affected.

Signed-off-by: Scott Lowe <scott.lowe@scottlowe.org>
@scottslowe
Copy link
Contributor Author

BTW, I have verified that this issue does not affect Ubuntu; hence, this PR includes commits affecting the CentOS/RHEL playbooks only.


- name: install Docker CE if docker binary is not present
command: "yum install -y --setopt=obsoletes=0 docker-ce-selinux-{{docker_redhat_version}} docker-ce-{{docker_redhat_version}}"
when: docker_present.stat.exists == False
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a comment to point to the upstream issue: moby/moby#33930 and remove the commented out task?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed via commit 0474adb

Remove commented tasks. Add comments explaining use of tasks and reasons. Added link to source issue in Moby repo.

Signed-off-by: Scott Lowe <scott.lowe@scottlowe.org>
@detiber detiber merged commit a188d9f into vmware-archive:master Aug 30, 2018
@scottslowe scottslowe deleted the issue-72 branch August 30, 2018 19:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants