Skip to content

Commit 9a5b7ae

Browse files
authored
Fix docker GPU (#492)
* Update docker command * Add default arg to dockerfile
1 parent 325ef5d commit 9a5b7ae

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG PARENT_IMAGE
1+
ARG PARENT_IMAGE=stablebaselines/stable-baselines3
22
FROM $PARENT_IMAGE
33

44
USER root

rl_zoo3/version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.6.0
1+
2.6.1a0

scripts/run_docker_gpu.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ echo $cmd_line
88

99
# Note: --user=root is needed, as the current user id/group id will be used
1010
# to mount the log directory (and $MAMBAUSER is not root)
11-
docker run -it --user=root --runtime=nvidia --rm --network host --ipc=host \
11+
docker run -it --user=root --gpus all --rm --network host --ipc=host \
1212
--mount src=$(pwd),target=/home/mambauser/code/rl_zoo3,type=bind stablebaselines/rl-baselines3-zoo:latest\
1313
bash -c "cd /home/mambauser/code/rl_zoo3/ && $cmd_line"

0 commit comments

Comments
 (0)