简体   繁体   English

从 Windows Docker 容器内部访问 vpn 主机

[英]Access to vpn hosts from inside Windows Docker Container

I have a Windows container running on Docker Desktop with a.Net framework project, the problem is when try to restore the packages, cannot find our internal artifactory.我有一个 Windows 容器在Docker 桌面上运行,带有 .Net 框架项目,问题是尝试恢复包时,找不到我们的内部工件。

I am connected via VPN to my company (Cisco AnyConnect) and have access to the artifactory repository, but the container has not.我通过 VPN 连接到我的公司(Cisco AnyConnect)并且可以访问工件存储库,但容器没有。 I know about the problems with windows containers and network interfaces (I had also this problems and need to move my connection from time to time https://improveandrepeat.com/2019/09/how-to-fix-network-errors-with-docker-and-windows-containers/ )我知道 windows 容器和网络接口的问题(我也有这个问题,需要不时移动我的连接https://improveandrepeat.com/2019/09/how-to-fix-network-errors-with -docker-and-windows-containers/ )

I also added in the Docker settings the artifactory url to emphasized text (that works for Linux containers)我还在 Docker 设置中添加了工件 url 以强调文本(适用于 Linux 容器)

I did something similar with Docker Desktop, i wrote the answer here: https://stackoverflow.com/a/66640222/1632288我用 Docker 桌面做了类似的事情,我在这里写了答案: https://stackoverflow.com/a/66640222/1632288

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM