![](/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.