Skip to content

Instantly share code, notes, and snippets.

@ytbilly3636
Last active December 14, 2018 08:37
Show Gist options
  • Save ytbilly3636/aa34990091f6674e8e766a4774b3f7a4 to your computer and use it in GitHub Desktop.
Save ytbilly3636/aa34990091f6674e8e766a4774b3f7a4 to your computer and use it in GitHub Desktop.
nvidia-dockerでatariとかを動かす
# $ 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