Docker rootless

docker office rootless doc rootless principle 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 # using office rootless shell script curl -sSL https://get.docker.com/rootless | sh # generally will be notice create `/etc/subuid` & `/etc/subgid` sudo touch /etc/subuid sudo touch /etc/subgid # edit touch file echo "`whoami`:`id -u`:65536" >> /etc/subuid echo "`whoami`:`id -u`:65536" >> /etc/subgid # reusing office rootless shell script curl -sSL https://get.docker.com/rootless | sh # --user opt service systemctl --user (start|stop|restart) docker # success to rootless docker docker ps

July 18, 2020 · 1 min · 94 words · atovk