cd docker
docker build --build-arg USER_ID=$UID -t spine_xr:v0 .
Ensure NVIDIA container toolkit are installed
# the first run
# replace "path-to-project-home" with the actual path
docker run --gpus all -it \
--shm-size=8gb --env="DISPLAY" --net=host \
--volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" \
--volume=$HOME/.torch/spine_xr_cache:/tmp:rw \
--mount type=bind,source="path-to-project-home",target=/home/appuser/spinexr \
--name=spine_xr spine_xr:v0
# start existing container
docker start spine_xr
docker exec -it spine_xr /bin/bash