はじめに 前回の 記事 ではtensorflow/tensorflowのイメージを元にdocker上でGPUモードのtensorflowを動かせる環境を構築しました. 先日,caffeのdocker環境を構築する機会がありまして,nvidia-dockerというものを使いました.nvidia-dockerを使うとdocker上から簡単にcudaにアクセスすることができます.今回はnvidia-dockerを使ってtensorflowを動かしてみようと思います. 追記 - 現在はtensorflow公式のイメージもnvidia-dockerを使うようになっています. nvidia-dockerの導入 dockerを導入した環境において,以下で導入できます. $ git clone https://github.com/NVIDIA/nvidia-docker.git $ cd nvidia-