33 lines
903 B
Diff
33 lines
903 B
Diff
diff --git a/deeplabcut_docker.sh b/deeplabcut_docker.sh
|
|
old mode 100644
|
|
new mode 100755
|
|
index c62087c..30b5e51
|
|
--- a/deeplabcut_docker.sh
|
|
+++ b/deeplabcut_docker.sh
|
|
@@ -1,4 +1,4 @@
|
|
-#!/bin/bash
|
|
+#!/usr/bin/env bash
|
|
#
|
|
# Helper script for launching deeplabcut docker UI containers
|
|
# Usage:
|
|
@@ -144,8 +144,10 @@ gui() {
|
|
update gui || exit 1
|
|
build gui || exit 1
|
|
- args="$(get_x11_args) $(get_mount_args) ${extra_args}"
|
|
+ args="$(get_x11_args) $(get_mount_args) ${extra_args} --userns keep-id"
|
|
+ xhost +local:dlc
|
|
$DOCKER run -it --rm ${args} $(get_local_container_name gui) \
|
|
|| err "Failed to launch the DLC GUI. Used args: \"${args}\""
|
|
+ xhost -local:dlc
|
|
}
|
|
|
|
# Launch a Jupyter Server in the current directory
|
|
@@ -182,7 +184,6 @@ custom() {
|
|
$DOCKER run -it $args ${image}-custom bash
|
|
}
|
|
|
|
-check_system
|
|
subcommand=${1:-gui}
|
|
shift 1
|
|
case "${subcommand}" in
|