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

How to do it...

Docker will all dependencies can be installed using following steps:

  1. Save the preceding code to a location with a name, say, Dockerfile.
  2. Using the command line, go to the file location and use the following command and it is also shown in the screenshot after the command:
docker run -t "TagName:FILENAME"
Building the docker image
  1. Access the image using the docker images command as follows:
View docker images
  1. Docker images can be executed using the following command:
docker run -it -p 8888:8888 -p 54321:54321 <<IMAGE ID>>
Running a Docker image

Here, the option -i is for interactive mode and -t is to allocate --tty. The option -p is used to forward the port. As we will be running Jupyter on port 8888 and H2O on 54321, we have forwarded both ports to accessible from the local browser.

主站蜘蛛池模板: 襄垣县| 巴楚县| 分宜县| 芜湖市| 漾濞| 皋兰县| 保亭| 龙山县| 襄汾县| 永顺县| 天水市| 新晃| 万源市| 崇礼县| 冕宁县| 乌恰县| 宁蒗| 丹东市| 卢氏县| 皮山县| 新巴尔虎右旗| 巴青县| 桐乡市| 青州市| 准格尔旗| 邳州市| 广南县| 广宁县| 久治县| 平利县| 钟祥市| 米易县| 海原县| 阜康市| 通许县| 杭州市| 怀来县| 大英县| 新巴尔虎右旗| 牡丹江市| 新疆|