14 lines
242 B
Bash
Executable File
14 lines
242 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [[ $# -ne 1 ]]; then
|
|
echo "using: $(basename $0) <container name>"
|
|
exit 1
|
|
fi
|
|
|
|
docker run -it \
|
|
-v /tmp/.X11-unix:/tmp/.X11-unix \
|
|
-v $HOME/.Xauthority:/root/.Xauthority \
|
|
-e DISPLAY=$DISPLAY \
|
|
$1 bash
|
|
|