Skip to content

Commit

Permalink
docker{,-rootful}.yaml: remove /var/run/docker.sock on installing r…
Browse files Browse the repository at this point in the history
…ootless

Signed-off-by: Norio Nomura <[email protected]>
  • Loading branch information
norio-nomura committed Jul 23, 2024
1 parent 4a18e6e commit 4a2f79c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion examples/docker-rootful.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,11 @@ provision:
readonly systemctl="systemctl --user"
readonly tee="tee"
sudo systemctl disable --now docker.socket docker
sudo systemctl disable --now docker
if [ "$rootless_installed" != "true" ]; then
sudo apt-get install -y dbus-user-session fuse3 uidmap
$systemctl start dbus
[ ! -S /var/run/docker.sock ] || sudo rm /var/run/docker.sock
dockerd-rootless-setuptool.sh install
fi
docker context use rootless
Expand Down
3 changes: 2 additions & 1 deletion examples/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,11 @@ provision:
readonly systemctl="systemctl --user"
readonly tee="tee"
sudo systemctl disable --now docker.socket docker
sudo systemctl disable --now docker
if [ "$rootless_installed" != "true" ]; then
sudo apt-get install -y dbus-user-session fuse3 uidmap
$systemctl start dbus
[ ! -S /var/run/docker.sock ] || sudo rm /var/run/docker.sock
dockerd-rootless-setuptool.sh install
fi
docker context use rootless
Expand Down

0 comments on commit 4a2f79c

Please sign in to comment.