简体   繁体   English

运行tensorflow docker时如何更改jupyter笔记本端口?

[英]How to change jupyter notebook port when running tensorflow docker?

I'm having hard time understanding the differecne between transaction and span我很难理解事务和跨度之间的区别

For instance, if you run docker using the following image例如,如果您使用以下图像运行 docker

tensorflow/tensorflow:${VERSION}-gpu-jupyter

How do you change the port jupyter server is running?如何更改 jupyter 服务器运行的端口?

docker run --gpus all -v /home/local_user:/tf/notebooks -p 8889:8888 -it --rm tensorflow/tensorflow:2.3.2-gpu-jupyter

You can now start jupyter on localhost:8889 or change 8889 to any desired port for the host.您现在可以在 localhost:8889 上启动 jupyter 或将 8889 更改为主机所需的任何端口。

Port mapping ref: https://docs.docker.com/engine/reference/run/#expose-incoming-ports端口映射参考: https : //docs.docker.com/engine/reference/run/#expose-incoming-ports

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法更改在 tensorflow docker 容器上运行的 jupyter 笔记本的工作目录 - Unable to change working directory for a jupyter notebook running on a tensorflow docker container Docker上的Tensorflow:如何在Jupyter笔记本上保存工作? - Tensorflow on Docker: How to save the work on Jupyter notebook? 在Docker中运行Jupyter Notebook - Running Jupyter notebook in Docker 如何在多个Docker容器上运行的单个端口(8888)上访问Jupyter Notebook? - How can I access Jupyter Notebook on single port (8888) running on multiple docker containers ? 尝试使用 Docker jupyter/tensorflow-notebook 登录 Jupyter notebook 时令牌无效 - Invalid token when trying to login into Jupyter notebook with Docker jupyter/tensorflow-notebook 我如何启动 tensorflow docker jupyter notebook - How do I start tensorflow docker jupyter notebook 如何在 Docker 中运行的 Jupyter notebook 中完成代码 - How to get code completion in a Jupyter notebook running in Docker 如何在 Docker 容器中运行的 Jupyter Notebook 中安装包 - How to install packages in Jupyter Notebook running in Docker Container 连接到在远程服务器上的docker中运行的jupyter Notebook - Connect to jupyter notebook running in docker on a remote server 使用jupyter笔记本运行docker图像的问题 - problem running docker image using jupyter notebook
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM