Commit 0207ff3e authored by Loukas Leontopoulos's avatar Loukas Leontopoulos Committed by Konstantinos Tsakalozos
Browse files

Pass user environment to underlying docker client (#275)

Add flag in sudo to preserve user environment when running docker command
parent fe4c71bb
......@@ -5,4 +5,4 @@ set -eu
export PATH="$SNAP/usr/sbin:$SNAP/usr/bin:$SNAP/sbin:$SNAP/bin:$PATH"
export LD_LIBRARY_PATH="$SNAP/lib:$SNAP/usr/lib:$SNAP/lib/x86_64-linux-gnu:$SNAP/usr/lib/x86_64-linux-gnu"
sudo "${SNAP}/usr/bin/docker" "-H" "unix://${SNAP_DATA}/docker.sock" "[email protected]"
sudo -E "${SNAP}/usr/bin/docker" "-H" "unix://${SNAP_DATA}/docker.sock" "[email protected]"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment