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

How to do it...

Follow these steps to get started:

  1. Use the following command on your Docker shell:
docker build -t bio https://raw.githubusercontent.com/PacktPublishing/Bioinformatics-with-Python-Cookbook-Second-Edition/master/docker/Dockerfile

On Linux, you will either need to have root privileges or be added to the Docker Unix group.

  1. Now, you are ready to run the container, as follows:
docker run -ti -p 9875:9875 -v YOUR_DIRECTORY:/data bio

Replace YOUR_DIRECTORY with a directory on your operating system. This will be shared between your host operating system and the Docker container. YOUR_DIRECTORY will be seen in the container on /data and vice versa.
-p 9875:9875 will expose the container TCP port 9875 on the host computer port 9875.
Especially on Windows (and maybe on macOS), make sure that your directory is actually visible inside the Docker shell environment. If not, check the Docker documentation on how to expose directories.

  1. You are now ready to use the system. Point your browser to http://localhost:9875 and you should get the Jupyter environment.

If this does not work on Windows, check the Docker documentation (https://docs.docker.com/) on how to expose ports.

主站蜘蛛池模板: 砚山县| 涪陵区| 富源县| 平昌县| 滦南县| 丽江市| 正蓝旗| 清徐县| 乳源| 澎湖县| 邯郸市| 内江市| 红桥区| 彝良县| 磐石市| 额敏县| 武冈市| 集安市| 渭源县| 永嘉县| 武陟县| 鸡西市| 平顺县| 衢州市| 布拖县| 海兴县| 河池市| 庄河市| 遂溪县| 兰溪市| 永福县| 抚远县| 盐池县| 闽清县| 武定县| 河池市| 蕉岭县| 小金县| 巫溪县| 潞城市| 宁蒗|