Use $XDG_RUNTIME_DIR instead of /run/user/$UID
This commit is contained in:
parent
34bfd0317d
commit
f100cdaf77
1 changed files with 2 additions and 2 deletions
|
@ -61,7 +61,7 @@ create()
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! buildah config --volume /run/user/$UID $working_container_name >/dev/null 2>&1; then
|
if ! buildah config --volume $XDG_RUNTIME_DIR $working_container_name >/dev/null 2>&1; then
|
||||||
buildah rmi $working_container_name >/dev/null 2>&1
|
buildah rmi $working_container_name >/dev/null 2>&1
|
||||||
echo "$0: failed to configure volume for /run/user/$UID"
|
echo "$0: failed to configure volume for /run/user/$UID"
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -95,7 +95,7 @@ create()
|
||||||
--security-opt label=disable \
|
--security-opt label=disable \
|
||||||
--tty \
|
--tty \
|
||||||
--volume $HOME:$HOME \
|
--volume $HOME:$HOME \
|
||||||
--volume /run/user/$UID:/run/user/$UID \
|
--volume $XDG_RUNTIME_DIR:$XDG_RUNTIME_DIR \
|
||||||
$toolbox_image >/dev/null 2>&1; then
|
$toolbox_image >/dev/null 2>&1; then
|
||||||
echo "$0: failed to create container $toolbox_container"
|
echo "$0: failed to create container $toolbox_container"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Reference in a new issue