Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Error] distrobox-create on podman fails using a custom imagestore (Error: creating container storage: creating an ID-mapped copy of layer) #1628

Open
3 tasks done
www-wagner opened this issue Dec 6, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@www-wagner
Copy link

Please, before opening a bug:

  • make sure you've read the documentation.
  • Ensure there isn't already an open issue about this.
  • Ensure there isn't already a closed/resolved issue about this.

Describe the bug
Using a custom imagestore for podman causes a distrobox-create error.

To Reproduce
Modify imagestore key to a custom path in ~/.config/containers/storage.conf:

[storage]

driver = "overlay"
runroot = "$XDG_RUNTIME_DIR/containers/storage"
graphroot = "/data/user/myuser/appdata/container/storage"
imagestore = "/data/public/sys/appdata/container/storage"

[storage.options]

additionalimagestores = [
]
pull_options = {enable_partial_images = "true", use_hard_links = "false", ostree_repos=""}

[storage.options.overlay]
mountopt = "nodev"

Expected behavior
Normal podman containers are created flawlessly using these settings but distrobox throws the error in the logs.

Logs
distrobox-create.log
user-permissions.log

DEBU[0000] Failed to create container app_debian(02615635d6e04be2ca9112ec3be29e6c65c2a966efb31ee2ad3d4bac8da23fe7): creating an ID-mapped copy of layer "71c320da7f9dae2fbc14935a898f280044728f42b6e80364b69859ea4e3e63e3": error during chown: storage-chown-by-maps: lchown bin: read-only file system: exit status 1
Error: creating container storage: creating an ID-mapped copy of layer "71c320da7f9dae2fbc14935a898f280044728f42b6e80364b69859ea4e3e63e3": error during chown: storage-chown-by-maps: lchown bin: read-only file system: exit status 1

Desktop (please complete the following information):

  • Are you using podman, docker or lilipod?
    • podman
  • Which version or podman, docker or lilipod?
    • 5.3.1
  • Which version of distrobox?
    • 1.8.0
  • Which host distribution?
    • Arch Linux
  • How did you install distrobox?
    • pacman

Additional context
The FS is BTRFS. With no custom imagestore for podman, distrobox-create works like a charm.

@www-wagner www-wagner added the bug Something isn't working label Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant