Public bug reported:
[ 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:
/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.
* The proposed patches replace the invocation with a bare `docker`, which is
always on $PATH.
[ Test Plan ]
* 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 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 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.
** Affects: docker.io-app (Ubuntu)
Importance: Undecided
Assignee: Grayson Wolf (graysonwolf)
Status: In Progress
** Affects: docker.io-app (Ubuntu Resolute)
Importance: Undecided
Assignee: Grayson Wolf (graysonwolf)
Status: New
** Affects: docker.io-app (Ubuntu Stonking)
Importance: Undecided
Assignee: Grayson Wolf (graysonwolf)
Status: In Progress
** Also affects: docker.io-app (Ubuntu Resolute)
Importance: Undecided
Status: New
** Also affects: docker.io-app (Ubuntu Stonking)
Importance: Undecided
Status: New
** Changed in: docker.io-app (Ubuntu Resolute)
Assignee: (unassigned) => Grayson Wolf (graysonwolf)
** Changed in: docker.io-app (Ubuntu Stonking)
Assignee: (unassigned) => Grayson Wolf (graysonwolf)
** Changed in: docker.io-app (Ubuntu Stonking)
Status: New => In Progress
--
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