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

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.

主站蜘蛛池模板: 昔阳县| 舟山市| 偃师市| 开鲁县| 镶黄旗| 启东市| 修武县| 天津市| 武胜县| 高邮市| 鸡泽县| 哈密市| 波密县| 淅川县| 郑州市| 虹口区| 五华县| 五大连池市| 富阳市| 荥经县| 三台县| 武功县| 太仓市| 山阴县| 许昌县| 上思县| 鸡泽县| 莆田市| 汉阴县| 随州市| 鄂温| 泸定县| 洞头县| 北票市| 荥经县| 六枝特区| 太原市| 永年县| 无棣县| 封开县| 建阳市|