Build a Docker image:
nvidia-docker build -t chainer-mnist:0.1
General form: nvidia-docker run --rm chainer-mnist:0.1 <GPU_ID>
Add sudo
in front if required.
time nvidia-docker run --rm chainer-mnist:0.1 -1
time nvidia-docker run --rm chainer-mnist:0.1 0