Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
linuxdaemon opened this issue Feb 6, 2024 · 0 comments
Open
Labels

Comments

@linuxdaemon
Copy link

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

@linuxdaemon linuxdaemon added the bug label Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant