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 always restart container #1003

Open
judzk opened this issue Nov 8, 2024 · 0 comments
Open

Docker Compose always restart container #1003

judzk opened this issue Nov 8, 2024 · 0 comments
Labels

Comments

@judzk
Copy link

judzk commented Nov 8, 2024

Describe the Bug

Docker Compose always restart container

Expected Behavior

If the container is running, docker compose should not restart the container

Steps to Reproduce

Steps to reproduce the behavior:

Use a docker compose

  docker_compose { 'cadvisor':
    ensure        => present,
    compose_files => ["${docker_data}/cadvisor/docker-compose.yaml"],
  }

Info: Checking for compose project cadvisor
Info: Checking for compose service cadvisor gcr.io/cadvisor/cadvisor:v0.49.1
Info: Checking for compose project cadvisor
Info: Checking for compose service cadvisor gcr.io/cadvisor/cadvisor:v0.49.1
Info: Rebuilding and Restarting all containers for compose project cadvisor
Info: Running compose project cadvisor
Notice: /Stage[main]/Cl_docker::Config/Docker_compose[cadvisor]: Triggered 'refresh' from 1 event

services:
  cadvisor:
    image: gcr.io/cadvisor/cadvisor:v0.49.1
    container_name: cadvisor
    volumes:
      - /:/rootfs:ro
      - /var/run:/var/run:ro
      - /sys:/sys:ro
      - /var/lib/docker/:/var/lib/docker:ro
      - /dev/disk/:/dev/disk:ro
    command:
    - '-port=8098'
    ports:
      - 8098:8098
    privileged: true
    devices:
      - /dev/kmsg

Environment

  • Debian 12
  • Docker last version
  • Puppet docker module 10.0.1

Additional Context

Add any other context about the problem here.

@judzk judzk added the bug label Nov 8, 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