-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrun_docker.sh
More file actions
28 lines (25 loc) · 879 Bytes
/
Copy pathrun_docker.sh
File metadata and controls
28 lines (25 loc) · 879 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
# Build the docker image
docker build -t lemanchot-dc:v0.1 .
xhost +
# Run the docker image
mkdir -p ./recordings
docker run -it --rm -e DISPLAY="unix:0.0" \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-v $HOME/.Xauthority:/root/.Xauthority \
--privileged \
--net=host \
--gpus all \
--mount type=bind,source="${PWD}/recordings",target=/home/lemanchot-dc/recordings \
-w /home/lemanchot-dc/
lemanchot-dc:v0.1
# RUN command for when running on MANIFOLD 2-C
# docker run -it --rm -e DISPLAY="unix:0.0" \
# -v /tmp/.X11-unix:/tmp/.X11-unix \
# -v $HOME/.Xauthority:/root/.Xauthority \
# --privileged \
# --net=host \
# --mount type=bind,source="${PWD}/recordings",target=/home/lemanchot-dc/recordings \
# -w /home/lemanchot-dc/
# lemanchot-dc:v0.1
xhost -