Skip to content

Docker compose restarting service with docker.io/library/ container #967

Open
@linuxdaemon

Description

@linuxdaemon

Describe the Bug

docker_compose will not register a service as running if one of the containers uses an image in the form docker.io/library/<name>. This seems to be an old format but it is still valid and used (eg. by authentik).

Expected Behavior

The provider should handle prefixes like this and ignore them when looking for running containers. The running container will show <name>:<version> rather than docker.io/library/<name>:<version>.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Deploy authentik with the docker_compose resource
    1. Something like
docker_compose { 'authentik':
    ensure => present,
    compose_files => ['/my.compose.yaml']
}
  1. Run puppet several times, each time it will report the service is not running and restart it.

Environment

  • Version 7.0.0
  • Platform Ubuntu 22.04

Additional Context

I followed the authentik docs for setup and then moved the .env and docker-compose.yaml files to puppet

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