feat(install): offer rootless Docker at the end of the Linux install
docker-ce-rootless-extras joins the Docker package list; offer_docker_rootless installs uidmap/dbus-user-session/slirp4netns, runs dockerd-rootless-setuptool.sh install (apt variant: /usr/bin, no PATH export) and enables linger. The rootful daemon is left alone. bashrc-linux exports DOCKER_HOST only when the user socket exists. README step 16 + package lists.
This commit is contained in:
1 parent
9eea9782d1
commit
eb7a75182e
4 files changed
+46
-5
No files matched your search
@@ -16,6 +16,12 @@ case ":$PATH:" in
|
||||
*) export PATH="$HOME/.local/bin:$PATH" ;;
|
||||
esac
|
||||
|
||||
# Rootless Docker (install.sh offer): tools that ignore the CLI context (docker-py,
|
||||
# testcontainers...) need DOCKER_HOST; only set when the user daemon's socket exists.
|
||||
if [ -S "${XDG_RUNTIME_DIR:-/run/user/$(id -u)}/docker.sock" ]; then
|
||||
export DOCKER_HOST="unix://${XDG_RUNTIME_DIR:-/run/user/$(id -u)}/docker.sock"
|
||||
fi
|
||||
|
||||
# Set history size to unlimited
|
||||
if [[ $EUID == 0 ]] ; then
|
||||
export HISTSIZE=0
|
||||
|
||||
Reference in new issue
Block a user