Skip to content

Commit

Permalink
misc: automatically reap container processes on Ctrl+C with init
Browse files Browse the repository at this point in the history
  • Loading branch information
NikLeberg committed Jan 6, 2024
1 parent 2a2301b commit 45fc8c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .devcontainer/.env
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function get_common_args () {
common_misc="--workdir $(pwd) --rm"
else
common_vols="--volumes-from $(cat /proc/self/cgroup | head -n 1 | cut -d '/' -f3)"
common_misc="--workdir $(pwd) --interactive --tty --rm"
common_misc="--workdir $(pwd) --init --interactive --tty --rm"
fi
common_disp="--env=DISPLAY=:0 --volume=/tmp/.X11-unix/:/tmp/.X11-unix/"
common_args="$common_vols $common_disp $common_misc"
Expand Down

0 comments on commit 45fc8c7

Please sign in to comment.