Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在容器中运行 DIGITS,并使用-p 5001参数启动该容器。如何使用我的主机连接该 DIGITS 站点?这是我运行 DIGITS 应用程序时容器的外观。
-p 5001
尝试运行docker inspect <container ID>(您的容器 id 以 开头2f1a6,它将为您提供容器的网络配置。
docker inspect <container ID>
2f1a6
然后,您可以尝试连接container_ip:5001以访问您的服务。
container_ip:5001