User Tools

Site Tools


soft:docker

Docker

Docker rootless setup

This is applicable from debian bullseye and use docker-ce packages.

$ sudo apt install docker-ce-rootless-extras
$ echo "options overlay permit_mounts_in_userns=1" | sudo tee /etc/modprobe.d/overlay2.conf
$ sudo systemctl disable --now docker.service docker.socket
$ mkdir ~/.config/docker
$ echo '{"storage-driver": "overlay2"}' > ~/.config/docker/daemon.json
$ dockerd-rootless-setuptool.sh check
$ dockerd-rootless-setuptool.sh install
$ export DOCKER_HOST=unix:///run/user/$UID/docker.sock
$ docker info
soft/docker.txt · Last modified: 2021/08/14 12:40 by phil