官术网_书友最值得收藏!

Installing the Docker container with the host volume mapped

In this section, we look at how to map the local volume $(pwd)/keras-samples to the work directory in the container.

  1. Execute the note -v flag command, which does the volume mapping:
docker run -d -v /$(pwd)/keras-samples:/home/jovyan/work \
-p 8888:8888 rajdeepd/jupyter-keras start-notebook.sh --NotebookApp.token=''

If you go to the URL, you will notice the sample page being displayed.

  1. If you got /$(pwd)/keras-samples, you will notice that the Notebooks are available in the host directory, and they also can be seen being loaded by Jupyter:
rdua1-ltm:keras-samples rdua$ pwd
/Users/rdua/personal/keras-samples
rdua1-ltm:keras-samples rdua$ ls
MNIST CNN.ipynb sample_one.ipynb

If you open MNIST CNN.ipynb, it is a Keras CNN sample, which we will learn more about in the subsequent chapters.

In this recipe, we used the Docker image rajdeepd/jupyter-keras to create a Keras environment and access it from Jupyter running in the host environment.

主站蜘蛛池模板: 大新县| 涿州市| 阿克陶县| 望奎县| 丰顺县| 荆门市| 高邮市| 扶绥县| 苍南县| 读书| 都匀市| 沂南县| 宜君县| 阳曲县| 于田县| 南乐县| 翼城县| 景泰县| 河池市| 山阴县| 周口市| 易门县| 铜梁县| 玉龙| 齐河县| 连城县| 海口市| 丽江市| 高清| 庆安县| 南平市| 炎陵县| 聂拉木县| 南和县| 曲周县| 同心县| 陇西县| 辰溪县| 伊川县| 南陵县| 崇阳县|