Page MenuHomeDevCentral

Switch Docker Engine to docker-ce official repository on CentOS
ClosedPublic

Authored by dereckson on May 24 2017, 10:32.
Tags
None
Referenced Files
F57656627: D987.diff
Sat, Nov 21, 09:20
F57544969: D987.id2522.diff
Fri, Nov 20, 04:33
F57544440: D987.diff
Fri, Nov 20, 04:26
F57317800: D987.diff
Tue, Nov 17, 11:18
F57237497: D987.diff
Mon, Nov 16, 15:10
F56998061: D987.diff
Thu, Nov 12, 18:47
F56882010: D987.diff
Tue, Nov 10, 09:37
F56794283: D987.diff
Mon, Nov 9, 10:16
Subscribers

Details

Summary

Previously, Docker was installed from two repositories:

  • EPEL
  • virt7, a specialized CBS on CentOS from Project Atomic.

We now switch to use the docker-ce CentOS repository from Docker.

Reference:
https://docs.docker.com/engine/installation/linux/centos/#install-using-the-repository

Test Plan

State applied on Dwellers.

Dwellers already have this update as it was applied manually yesterday
to unstuck Mastodon containers (the docker-compose version required
Docker 1.13+, CBS still provides 1.12).

     ID: remove_legacy_docker_packages
Comment: All specified packages are already absent

     ID: install_docker_engine
Comment: All specified packages are already installed

So it's correctly, as expected no-op.

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dereckson added inline comments.
roles/paas-docker/docker/init.sls
30

We also need to saltize the docker-ce repository.

URL: https://download.docker.com/linux/centos/docker-ce.repo

Current configuration file in /etc/yum.repos.d/docker-ce.repo.

dereckson edited edge metadata.

Download docker-ce.repo

We can't use pkgrepo conveniently, as it's a state to manually populate a repo.

      ID: install_docker_engine
Function: file.managed
    Name: /etc/yum.repos.d/docker-ce.repo
  Result: True
 Comment: File /etc/yum.repos.d/docker-ce.repo is in the correct state
 Started: 12:42:02.023580
Duration: 533.147 ms
 Changes:
dereckson marked an inline comment as done.
This revision is now accepted and ready to land.May 24 2017, 10:43
This revision was automatically updated to reflect the committed changes.