stable-baselines3/scripts/run_docker_gpu.sh

12 lines
419 B
Bash
Raw Permalink Normal View History

2020-05-07 09:08:49 +00:00
#!/bin/bash
# Launch an experiment using the docker gpu image
cmd_line="$@"
echo "Executing in the docker (gpu image):"
echo $cmd_line
# Using new-style GPU argument
NVIDIA_ARG="--gpus all"
2020-05-07 09:08:49 +00:00
docker run -it ${NVIDIA_ARG} --rm --network host --ipc=host \
--mount src=$(pwd),target=/home/mamba/stable-baselines3,type=bind stablebaselines/stable-baselines3:latest \
bash -c "cd /home/mamba/stable-baselines3/ && $cmd_line"