Error AtlasError Documentation and Resolution

Docker failed to register layer because lchown returned operation not permitted

docker: failed to register layer: ApplyLayer exit status 1 stdout: stderr: lchown <FILE>: operation not permitted

Docker could not unpack an image layer in rootless mode because the Docker data directory is on NFS, where the required ownership changes are not permitted.

failed to register layerinstallation
docker: failed to register layer: ApplyLayer exit status 1 stdout: stderr: lchown <FILE>: operation not permitted
  • The rootless Docker data directory is located on an NFS mount.
  • The filesystem used for the Docker data root does not allow the ownership changes required while unpacking layers.
  1. Move the rootless Docker data-root to a non-NFS location.
  2. Update ~/.config/docker/daemon.json so Docker stores data on a local filesystem.
  3. Retry the image pull after restarting the rootless Docker environment.
Docker Docs: Rootless troubleshooting
Docker failed to register layer operation not permitted: fixes | Error Atlas