setup rootless: use overlay2 instead of fuse-overlayfs
This commit is contained in:
parent
99b544491e
commit
63ac77f565
1 changed files with 1 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
sudo apt install -y uidmap fuse-overlayfs slirp4netns rootlesskit
|
sudo apt install -y uidmap slirp4netns rootlesskit
|
||||||
|
|
||||||
if ! grep -q '/usr/share/docker.io/contrib' "$HOME/.profile" > /dev/null; then
|
if ! grep -q '/usr/share/docker.io/contrib' "$HOME/.profile" > /dev/null; then
|
||||||
echo 'export PATH="/usr/share/docker.io/contrib:$PATH"' >> "$HOME/.profile"
|
echo 'export PATH="/usr/share/docker.io/contrib:$PATH"' >> "$HOME/.profile"
|
||||||
|
@ -14,6 +14,4 @@ sudo loginctl enable-linger "$USER"
|
||||||
|
|
||||||
PATH="/usr/share/docker.io/contrib:$PATH" dockerd-rootless-setuptool.sh install
|
PATH="/usr/share/docker.io/contrib:$PATH" dockerd-rootless-setuptool.sh install
|
||||||
|
|
||||||
echo '{"storage-driver": "fuse-overlayfs"}' > "$HOME/.config/docker/daemon.json"
|
|
||||||
|
|
||||||
systemctl --user enable --now docker
|
systemctl --user enable --now docker
|
||||||
|
|
Loading…
Reference in a new issue