I spent two hours today trying to figure out why Nextcloud couldn’t read my data directory. Docker wasn’t mounting my data directory. Moved everything into my data directory. Docker couldn’t even see the configuration file.

Turns out the Docker Snap package only has access to files under the /home directory.

Moral of the story: never trust a Snap package.

  • Samsy@lemmy.ml
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    11 months ago

    TIL, docker has a snap package, and can’t stop laughing. What’s next? A flatpak or AppImage?

  • krash@lemmy.ml
    link
    fedilink
    English
    arrow-up
    0
    ·
    11 months ago

    But this is by design, snap containers aren’t allowed to read data outside of their confinements. Same goes for flatpak and OCI-containers.

    I don’t use snap myself, but it does have its uses. Bashing it just because it’s popular to hate on snap won’t yield a healthy discussion on how it could be improved.