[Solved] Docker failed to register layer: failed to mknod

Hello,

I am trying to setup jitsi in a docker instance. Unfortunately it is giving an error,

$ docker compose up -d
[+] Running 14/20
 ⠙ web [⣿⣿⣿⣿⣿⣿⣿] 111.4MB / 114.1MB Pulling                                                                                                                                                                  14.2s 
   ✔ a480a496ba95 Pull complete                                                                                                                                                                              3.5s 
   ✔ 8b3973c9358f Pull complete                                                                                                                                                                             11.0s 
   ⠏ e808319a275f Extracting      [==================================================>]  14.84MB/14.84MB                                                                                                    11.9s 
   ✔ 4f4fb700ef54 Download complete                                                                                                                                                                          1.9s 
   ✔ 2a398f3883e1 Download complete                                                                                                                                                                          2.2s 
   ✔ 460b26d15a47 Download complete                                                                                                                                                                          2.7s 
   ✔ 158a1d1f8179 Download complete                                                                                                                                                                          4.1s 
 ⠙ jvb [⣿⣿⣿] 293.4MB / 302.7MB Pulling                                                                                                                                                                      14.2s 
   ✔ 7171fa39f8bd Download complete                                                                                                                                                                          6.6s 
   ✔ a02cec0edbaa Download complete                                                                                                                                                                          6.6s 
   ⠇ a96a3a73eadf Downloading     [==================================================>]  4.314kB/4.314kB                                                                                                    11.8s 
 ⠙ prosody [⣿⣿⣿⣿] 25.97MB / 30.73MB Pulling                                                                                                                                                                 14.2s 
   ✔ fe72ef5b1fd0 Download complete                                                                                                                                                                          8.9s 
   ✔ 70a6194a9605 Download complete                                                                                                                                                                          9.0s 
   ✔ c02569db85d9 Download complete                                                                                                                                                                          9.7s 
   ✔ e30c169a822a Download complete                                                                                                                                                                          9.8s 
 ⠙ jicofo [⣿⣿] 23.99MB / 30.36MB Pulling                                                                                                                                                                    14.2s 
   ✔ ecb17bec2347 Download complete                                                                                                                                                                          7.8s 
   ✔ 6d04b77b9652 Download complete                                                                                                                                                                          8.2s 
failed to register layer: failed to mknod("/var/lib/apt/lists", S_IFCHR, 0): operation not permitted

The incus container has the following set,

  security.nesting: "true"
  security.syscalls.intercept.mknod: "true"
  security.syscalls.intercept.setxattr: "true"
  security.syscalls.intercept.sysinfo: "true"

Host is archlinux and incus container is Ubuntu/Noble.

The /var/lib/docker is formatted using ext4 and mounted on the host,

/dev/disk/by-id/ata-Samsung_SSD_870_EVO_500GB /mnt/docker1 ext4 nodev,nofail,discard 0 0

Any idea how to i fix this?

the problem is nodev flag, try remove it.

I have been using this disk with the ‘nodev’ option and docker running on archlinux host so far. I will try your suggestion.


Thanks, i changed to following and no longer have the issue,

/dev/disk/by-id/ata-Samsung_SSD_870_EVO_500GB /mnt/docker1 ext4 auto,discard 0 0