$ docker pull pytorch/pytorch:latest
$ mkdir ~/pytorch_docker
$ docker run -it -v /home/nahye/pytorch_docker:/workspace --name "nahye_torch" pytorch/pytorch /bin/bash
python 코드를 실행시키려고 하니 python extendion을 설치하라고 해서 설치했다
$ docker run -it -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix -v /home/nahye/pytorch_docker:/workspace --name "gui_torch" pytorch/pytorch
-p
옵션으로 port를 설정해 준다$ docker run -it -v /home/nahye/pytorch_docker:/workspace --name "torch_tensorboard" -p 6006:6006 pytorch/pytorch /bin/bash
# tensorboard --logdir=./output --port 6006 --host=0.0.0.0