Distrobox not usable in current state

Yep. Quoting distrobox manual:

:warning: BE CAREFUL ::warning: if you use docker , or you use podman /lilipod with the --root/-r flag, the containers will run as root, so root inside the rootful container can modify system stuff outside the container , Be also aware that In rootful mode, you’ll be asked to setup the user’s password , this will ensure at least that the container is not a passwordless gate to root, but if you have security concerns for this, use podman or lilipod that runs in rootless mode . Rootless docker is still not working as intended and will be included in the future when it will be complete.

Hi, I removed distrobox and it took docker with it; invoked zypper to reinstall:


sudo zypper in distrobox
[sudo] password for root: 
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following 2 recommended packages were automatically selected:
  docker-buildx docker-rootless-extras

The following 6 NEW packages are going to be installed:
  distrobox distrobox-bash-completion docker docker-bash-completion docker-buildx docker-rootless-extras

6 new packages to install.
Overall download size: 44.2 MiB. Already cached: 0 B. After the operation, additional 175.3 MiB will be used.

@lavadrop I don’t see that here, I get distrobox and distrobox-bash-completion uninstalled and re-installed. Maybe you have something else requiring docker? I do have podman installed here though.

bor@10:~> rpm -q --requires distrobox
(/usr/bin/podman or /usr/bin/docker)
...

If nothing is present, zypper has to select something. It just happens to chose docker.

If that is the case, why uninstalling distrobox also remove docker?

This is what I get:
package distrobox is not installed

Sigh … if you want podman, install podman before installing distrobox.

So, what happens is that if you don’t have any container installed, distrobox includes docker as a dependency; if you have podman, it won’t include docker.

@lavadrop I expect it’s because d is before p? But yes, one or the other…

zypper in distrobox toolbox

The following 4 NEW packages are going to be installed:
  distrobox distrobox-bash-completion podman toolbox

zypper in distrobox

The following 2 recommended packages were automatically selected:
  docker-buildx docker-rootless-extras

The following 7 NEW packages are going to be installed:
  distrobox distrobox-bash-completion docker docker-bash-completion docker-buildx docker-fish-completion docker-rootless-extras

I’m not an expert on virtualization or how Docker works, but I find it weird that an Ubuntu container would access and modify settings/configs from my OpenSUSE host. To me this is the whole point of distrobox/containers that I can mess around without having to worry about contaiminating my host system.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.