Overleaf Docker in LXC

Tropaion

Member
Oct 2, 2020
30
0
11
29
Hello,

it's my first time working with Docker since I have no choice and I want to get Overleaf Docker running in an LXC.
I already read that the storage driver is the most common problem.
First I installed Debian11 LXC and Docker: "apt install docker docker-compose"
Docker Info shows that overlay2 is used:
Code:
root@Overleaf:/home/overleaf-toolkit# docker info
Client:
 Context:    default
 Debug Mode: false

Server:
 Containers: 0
  Running: 0
  Paused: 0
  Stopped: 0
 Images: 0
 Server Version: 20.10.5+dfsg1
 Storage Driver: overlay2
  Backing Filesystem: zfs
  Supports d_type: true
  Native Overlay Diff: false
 Logging Driver: json-file
 Cgroup Driver: systemd
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 1.4.13~ds1-1~deb11u4
 runc version: 1.0.0~rc93+ds1-5+deb11u2
 init version:
 Security Options:
  seccomp
   Profile: default
  cgroupns
 Kernel Version: 5.15.104-1-pve
 Operating System: Debian GNU/Linux 11 (bullseye)
 OSType: linux
 Architecture: x86_64
 CPUs: 2
 Total Memory: 2GiB
 Name: Overleaf
 ID: K55V:IXEI:EHOH:GS42:YPK7:7RRL:FATW:WJN6:J3AR:HZYI:ETR6:GUPL
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

WARNING: Support for cgroup v2 is experimental

But when installing with overleaf toolkit I get this error:
Code:
ERROR: failed to register layer: Error processing tar file(exit status 1): replaceDirWithOverlayOpaque("/var/cache/apt/archives") failed: createDirWithOverlayOpaque("/var/cache/apt/rdwoo275107948") failed: failed to mkdir /var/cache/apt/rdwoo275107948/m/d: mkdir /var/cache/apt/rdwoo275107948/m/d: input/output error

Can someone help me with this? I didn't find anything helpfull in the internet

Thanks,
Tropaion