lobaro / restic-backup-docker

A docker container to automate backups with restic
Apache License 2.0
330 stars 114 forks source link

failed to create shim task: OCI runtime create failed #86

Open tippfehlr opened 4 months ago

tippfehlr commented 4 months ago

When trying to run the container, I get this error:

Error response from daemon: failed to create task for container:
failed to create shim task: OCI runtime create failed:
runc create failed: unable to start container process:
error during container init: error setting cgroup config
for procHooks process: resulting devices cgroup doesn't
match target mode: unknown

(I added line breaks)

docker info: https://bin.gy/isconegran

And the compose file:


version: '3'
services:
  restic:
    image: ghcr.io/lobaro/restic-backup-docker:latest
    hostname: [REDACTED] # This will be visible in restic snapshot list
    restart: unless-stopped
    privileged: true
    volumes:
      - ../activity-roles/db:/data/activity-roles:ro
      - ./restic:/restic
    environment:
      - RESTIC_REPOSITORY=/restic
      - 'RESTIC_PASSWORD=[REDACTED]
      - 'BACKUP_CRON=0 */6 * * *'
      - 'CHECK_CRON=0 4 * * *'
      - 'RESTIC_FORGET_ARGS=--prune --keep-daily 30 --keep-weekly 20 --keep-monthly 24'