jordanpotter / docker-mods

MIT License
4 stars 3 forks source link

digest could not be fetched from registry-1.docker.io #4

Closed sebdanielsson closed 4 months ago

sebdanielsson commented 4 months ago

Since a couple of days I'm getting this error when starting transmission with your awesome docker mod. Any idea how to resolve it?

[mod-init] Running Docker Modification Logic
[mod-init] Adding jordanpotter/docker-mods:transmission-nat-pmp to container
[mod-init] (ERROR) jordanpotter/docker-mods:transmission-nat-pmp digest could not be fetched from registry-1.docker.io

I tested to use ghcr instead of not specifying a repo and got the same error:

[mod-init] Running Docker Modification Logic
[mod-init] Adding jordanpotter/docker-mods:transmission-nat-pmp to container
[mod-init] (ERROR) jordanpotter/docker-mods:transmission-nat-pmp digest could not be fetched from ghcr.io

I'm using this compose file:

---
services:
  wireguard:
    image: ghcr.io/linuxserver/wireguard:version-1.0.20210914-r4
    container_name: wireguard
    cap_add:
      - NET_ADMIN
    sysctls:
      - net.ipv6.conf.all.disable_ipv6=0
      - net.ipv4.conf.all.src_valid_mark=1
    networks:
      wgnet:
        ipv4_address: 172.100.0.2
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/Stockholm
    ports:
      - 9091:9091
    volumes:
      - /lib/modules:/lib/modules
      - ./wg0.conf:/config/wg_confs/wg0.conf
    restart: unless-stopped
    labels:
      - com.centurylinklabs.watchtower.monitor-only=true
  transmission:
    image: ghcr.io/linuxserver/transmission:version-4.0.5-r2
    container_name: transmission
    network_mode: "service:wireguard"
    depends_on:
      - wireguard
    env_file:
      - secrets.env
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/Stockholm
      - DOCKER_MODS=jordanpotter/docker-mods:transmission-nat-pmp-20240702121311
    volumes:
      - transmission_data:/config
      - /chungus/media/downloads:/downloads
    restart: unless-stopped

networks:
  wgnet:
    ipam:
      config:
        - subnet: 172.100.0.0/24
          ip_range: 172.100.0.0/24
          gateway: 172.100.0.1
    attachable: true

volumes:
  transmission_data:
    name: transmission_data
jordanpotter commented 4 months ago

Hey @sebdanielsson , were any of the recommendations in this thread helpful?

sebdanielsson commented 4 months ago

Hey @sebdanielsson , were any of the recommendations in this thread helpful?

I restarted my container after a couple of minutes and everything was working. I have a theory. Because Transmission is only allowed to use networking through the WireGuard container and they're starting at the same time, the download is aborted because the VPN interface isn't up yet. So I need to find a way to add a delay of 30-60 seconds before starting my Transmission container.