tiredofit / docker-traefik-cloudflare-companion

Automatically Create CNAME records for containers served by Traefik

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Image fails to pull on any LXC instance of Docker

mariaWitch opened this issue · comments

commented

Summary

Whenever the image is pulled down from Docker hub, the following error is encountered when trying to pull the image:
failed to register layer: ApplyLayer exit status 1 stdout: stderr: lchown /run/fail2ban: invalid argument
Most of my reading into this, implies that this is an issue with rootless mode specifically. All of the other containers I was pulling did not have any issues, this was the only one that had any issues in rootless mode. Something during the pull is calling a UID and GID beyond 65565, which is the max uid and gid values on an LXC container in rootless mode.

Steps to reproduce

  1. Attempt to pull the docker image from hub.docker.com on an LXC Container with Docker on it. (I have tried it on both Debian and Almalinux with the same results)

What is the expected correct behavior?

The image should pull without erroring out.

Relevant logs and/or screenshots

[root@docker3 etc]# sudo docker pull tiredofit/traefik-cloudflare-companion
Using default tag: latest
latest: Pulling from tiredofit/traefik-cloudflare-companion
213ec9aee27d: Pull complete 
309f922759ec: Extracting [==================================================>]  46.13MB/46.13MB
45d9207b0216: Download complete 
af2e2319950c: Download complete 
18e4eeca72f6: Download complete 
failed to register layer: ApplyLayer exit status 1 stdout:  stderr: lchown /run/fail2ban: invalid argument 

Environment

  • Image version / tag: Latest (6.8.5)
  • Guest OS: Almalinux 8.6
  • Host OS: Proxmox 7.2-7
commented

Adding on to this, I have been able to narrow down to it being specifically effecting all of your Alpine base images 3.5 and above. (3.3 and 3.4 pulled fine.)

commented

Ticket has been moved over to the Alpine image page. See: github.com/tiredofit/docker-alpine/issues/59