docker, pytorch
$ git clone https://github.com/RuiHirano/pytorch-docker-mnist-sample.git
$ docker image build -t [your-name]/pytorch:latest
ex.
$ docker image build -t ruihirano/pytorch:latest
version: "3"
services:
mnist:
container_name: mnist
image: ruihirano/pytorch:latest // change your image
stdin_open: true
tty: true
volumes:
- "./:/workspace"
$ docker-compose up -d
$ docker container attach mnist
$ /workspace# python mnist.py