** Description changed: [ Impact ] - * Right now, on Resolute / Stonking, the rootless mode installation script at - /usr/share/docker.io/contrib/dockerd-rootless-setuptool.sh fails to run properly, - terminating with error: + * Right now, on Resolute / Stonking, the rootless mode installation script at + /usr/share/docker.io/contrib/dockerd-rootless-setuptool.sh fails to run properly, + terminating with error: - /usr/share/docker.io/contrib/dockerd-rootless-setuptool.sh: 377: + /usr/share/docker.io/contrib/dockerd-rootless-setuptool.sh: 377: /usr/share/docker.io/contrib/docker: not found - This is because the upstream script excepts docker to exist in the same directory - as the setup script, while in Ubuntu this is not the case. + This is because the upstream script excepts docker to exist in the same directory + as the setup script, while in Ubuntu this is not the case. + This stops both the installation and the creation of the necessary + rootless context. - * The proposed patches replace the invocation with a bare `docker`, which is always on $PATH. + * The proposed patches replace the invocation with a bare `docker`, + which is always on $PATH. [ Test Plan ] - * From a fresh LXD container: + * From a fresh LXD container: - [ In root shell ] - # Dependencies - apt update; apt upgrade - apt install rootlesskit uidmap slirp4netns fuse-overlayfs - - # Docker - apt install docker.io - - #get access to a user shell without su - apt install systemd-container - machinectl shell ubuntu@ + [ In root shell ] + # Dependencies + apt update; apt upgrade + apt install rootlesskit uidmap slirp4netns fuse-overlayfs - [ In the user shell ] - export PATH=/usr/share/docker.io/contrib:$PATH - sh /usr/share/docker.io/contrib/dockerd-rootless-setuptool.sh install - - * Expected result: + # Docker + apt install docker.io - Docker installs, and - - docker info | grep Context + #get access to a user shell without su + apt install systemd-container + machinectl shell ubuntu@ - shows rootless + [ In the user shell ] + export PATH=/usr/share/docker.io/contrib:$PATH + sh /usr/share/docker.io/contrib/dockerd-rootless-setuptool.sh install - * Actual result: + * Expected result: - /usr/share/docker.io/contrib/dockerd-rootless-setuptool.sh: 377: + Docker installs, and + + docker info | grep Context + + shows rootless + + * Actual result: + + /usr/share/docker.io/contrib/dockerd-rootless-setuptool.sh: 377: /usr/share/docker.io/contrib/docker: not found - [ Where problems could occur ] - * It is possible that other tools built upon rootless docker might also make - the same assumption as this script, meaning that this may require future changes - or patches, as those tools would see a rootless Docker instance, assume a docker bin - is at /usr/share/docker.io/contrib alongside the setup tool (or somewhere else entirely, - depending on how Docker's own docker-ce-rootless-extras installs the rootless tools, and fail. + * It is possible that other tools built upon rootless docker might also make + the same assumption as this script, meaning that this may require future changes + or patches, as those tools would see a rootless Docker instance, assume a docker bin + is at /usr/share/docker.io/contrib alongside the setup tool (or somewhere else entirely, + depending on how Docker's own docker-ce-rootless-extras installs the rootless tools, and fail.
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2156625 Title: [SRU] Rootless install script doesn't complete properly. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/docker.io-app/+bug/2156625/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
