Skip to content

Commit

Permalink
create: should not use socket on create or there will be permission p…
Browse files Browse the repository at this point in the history
…roblems in the image
  • Loading branch information
89luca89 committed Dec 19, 2021
1 parent 07c3bb5 commit b802726
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions distrobox-create
Original file line number Diff line number Diff line change
Expand Up @@ -96,18 +96,6 @@ fi
# We depend on a container manager let's be sure we have it
# First we use podman, else docker
container_manager="podman"
# Small performance optimization, using podman socket shaves
# about half the time to access informations.
#
# Accessed file is /run/user/USER_ID/podman/podman.sock
#
# This is not necessary on docker as it is already handled
# in this way.
if [ -S "/run/user/$(id -ru)/podman/podman.sock" ] &&
systemctl --user status podman.socket >/dev/null; then

container_manager="${container_manager} --remote"
fi
# Be sure we have a container manager to work with.
if ! command -v podman >/dev/null; then
# If no podman, try docker.
Expand Down

0 comments on commit b802726

Please sign in to comment.