Skip to content

using Packages from Debian Repository fails with missing docker-ce-cli package #797

@peterbeck

Description

@peterbeck

When using the Debian repo (use_upstream_pacakge_source => false) the module is trying to install docker-ce-cli, which is not available in the Debian repositories. There is just 'docker.io'.
This only happens when using puppetlabs-docker > 4.0.1

E: Package 'docker-ce-cli' has no installation candidate
Error: /Stage[main]/Docker::Install/Package[docker-ce-cli]/ensure: change from 'purged' to 'present' failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install docker-ce-cli' returned 100: 
...
Package docker-ce-cli is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

I know Debian 11 is officially not on the supported OS list... and I'd like to use the packages from the official Debian repository.

Expected Behavior

With puppetlabs-docker 4.0.1 everything works as expected. I think this issue was introduced with #740.

Steps to Reproduce

Steps to reproduce the behavior:

  1. install puppetlabs-docker > 4.0.1
  2. run puppet with this configuration:
class { 'docker':
   use_upstream_package_source => false,
   service_overrides_template  => false,
   docker_ce_package_name      => 'docker.io',
}

is there a way to get around this issue and using the latest module version ?
Or am I doing something wrong ?

Thanks and regards
Peter

Environment

  • puppetlabs-docker >= 4.1.0
  • Debian 11.2 / Bullseye
  • puppet agent 7.14.0
  • puppetserver 7.6.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions