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.

    • henfredemars@infosec.pub
      link
      fedilink
      English
      arrow-up
      19
      ·
      6 months ago

      Proprietary when flatpak exists, and it doesn’t properly address how apps should dynamically request access to things they need. Every time I’ve used either solution I’ve run into some permissions problem.

        • atzanteol@sh.itjust.works
          link
          fedilink
          English
          arrow-up
          15
          ·
          6 months ago

          For desktop apps maybe. How do you run a flatpak from the cli? “flatpak run org.something.Command”. Awesome.

          Both suffer from not making it obvious what directories your application can access and not providing a clear message when you try to access files it can’t. The user experience sucks.

      • lemmyng@lemmy.ca
        link
        fedilink
        English
        arrow-up
        5
        arrow-down
        1
        ·
        6 months ago

        The one thing snap does that flatpak doesn’t is provide CLI applications. But then nix also does that, so snap can go pound salt.

  • JustUseMint@lemmy.world
    link
    fedilink
    English
    arrow-up
    47
    ·
    6 months ago

    I have stopped using Ubuntu because of this and other Canonical nonsense. It used to be the best too. For a workstation, Mint Cinnamon, for a server Debian headless. God speed with the rest of your setup

    • RamdomSlaphead@feddit.uk
      link
      fedilink
      English
      arrow-up
      17
      ·
      6 months ago

      This year I finally snapped (pun intended!), and moved to debian 12 on the desktop (after starting on Ubuntu 6.06). It’s so familiar, but somehow more straight forward. Things “just work”, as opposed to the constant niggles I had with Ubuntu.

  • redcalcium@lemmy.institute
    link
    fedilink
    English
    arrow-up
    47
    arrow-down
    1
    ·
    6 months ago

    I also like to run my container platform as a containerized application in another container platform.

      • redcalcium@lemmy.institute
        link
        fedilink
        English
        arrow-up
        31
        arrow-down
        1
        ·
        edit-2
        6 months ago

        Why does Docker has a snap version in the first place anyway? Did Canonical pester them to do it?

        Edit:

        Nope, it’s just Canonical went ahead and publish it there by themselves.

        This snap is built by Canonical based on source code published by Docker, Inc. It is not endorsed or published by Docker, Inc.

        • thesmokingman@programming.dev
          link
          fedilink
          English
          arrow-up
          5
          ·
          6 months ago

          It’s also offered as part of the installation process at least for Ubuntu server. If you don’t know better it bites you real quick.

        • GenderNeutralBro@lemmy.sdf.org
          link
          fedilink
          English
          arrow-up
          1
          ·
          6 months ago

          It’s insane how many things they push as Snaps when they are entirely incompatible with the Snap model.

          I think everyone first learns what Snaps are by googling “why doesn’t ____ work on Ubuntu?” For me, it was Filebot. Spent an hour or two trying to figure out how the hell to get it to actually, you know, access my files. (This was a few years ago, so maybe things are better now. Not sure. I don’t live that Snap life anymore, and I’m not going back.)

  • Possibly linux@lemmy.zip
    link
    fedilink
    English
    arrow-up
    9
    ·
    6 months ago

    Snap is one of those things that shouldn’t exist. There’s distrobox (podman) or flatpak both of which are more mature and flexible.

  • ikidd@lemmy.world
    link
    fedilink
    English
    arrow-up
    10
    arrow-down
    1
    ·
    edit-2
    6 months ago

    Yah, it’s been trash from the start. I tried it 2 years ago and the unpredictable weird shit it did was useless to try to troubleshoot. It was worse than trying to run Docker on Windows, if that can be believed.

    Debian with the Docker convenience script is the way to run Docker.