![](/img/trans.png)
[英]How can I expose a port from ASP.NET Core in Docker linux container in Windows?
[英]Edit ASP.NET Core website in Docker container on Windows and run on Ubuntu VPN
我想在docker容器中创建一个ASP.NET Core 2.0网站并将其托管在Linux VPS docker系统上。 我尝试在Visual Studio中创建一个ASP.NET Core 2.0项目,然后将其发布到docker hub。 一切正常,直到我想在我的Linux环境上运行该docker映像。 然后,我收到一条错误消息,说该图像是为Windows或类似的东西创建的。 我知道我需要在Linux环境创建asp.net项目,然后开始编码(明显),但我想要做的,例如Visual Studio中的编码我的电脑上,而不是通过PICO或一些其他的ssh连接编辑器。
总结如下:
- I wish to run ASP.NET Core 2.0 website on Linux Docker VPS environment.
- I (think I) need to create the project in the Linux environment (I run Windows locally).
- Wish to edit the code in the docker container locally on my Windows environment.
有人知道我能做到这一点吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.