diff --git a/doc/python/docker.rst b/doc/python/docker.rst index b99bc5546..2d81a2e2d 100644 --- a/doc/python/docker.rst +++ b/doc/python/docker.rst @@ -1,9 +1,29 @@ Run A Docker Image hosted on DockerHub ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -TODO. +.. code-block:: bash + + docker pull nnabla/nnabla + docker run nnabla/nnabla python -c "import nnabla" + +If it works, you should see + +.. code-block:: bash + + 2017-07-03 02:52:51,435 [nnabla][INFO]: Initializing CPU extension... Build Docker Image from source ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -TODO. +.. code-block:: bash + + git clone git@github.com:sony/nnabla.git + cd nnabla + docker build -t nnabla -f docker/Dockerfile . + docker run nnabla python -c "import nnabla" + +If it works, you should see + +.. code-block:: bash + + 2017-07-03 02:52:51,435 [nnabla][INFO]: Initializing CPU extension...