Last active
December 14, 2018 08:37
-
-
Save ytbilly3636/aa34990091f6674e8e766a4774b3f7a4 to your computer and use it in GitHub Desktop.
nvidia-dockerでatariとかを動かす
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# $ docker build -t rlgpuenv . | |
# $ xhost + | |
# $ nvidia-docker run --rm \ | |
# -v $PWD:/dir \ | |
# -v /tmp/.X11-unix/:/tmp/.X11-unix/ \ | |
# -e DISPLAY=$DISPLAY \ | |
# -e QT_X11_NO_MITSHM=1 \ | |
# rlgpuenv python3 game.py | |
FROM nvidia/cuda | |
MAINTAINER ytbilly3636 | |
RUN apt update | |
RUN apt install -y python3-dev \ | |
python3-pip \ | |
python3-tk \ | |
python-opengl \ | |
libgtk2.0-dev | |
RUN pip3 install chainer \ | |
cupy \ | |
chainerrl \ | |
gym[atari] \ | |
gym[box2d] \ | |
matplotlib \ | |
opencv-python | |
RUN mkdir /dir | |
WORKDIR /dir | |
VOLUME ["/dir"] | |
CMD ["bash"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment