- Build Paddlepaddle docker images:
cd ${PADDLE_SOURCE_DIR} && docker build -t paddle:dev .
- Add docker to linux X11 for GUI
xhost + local:docker
xhost + local:nvidia-docker
if you are need to use GPU
- Go to
${PADDLE_SOURCE_DIR}
, start docker and mount paddle's source code to/paddle
.
sudo nvidia-docker run -v $PWD:/paddle -it -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix paddle:dev bash