R
Railway•11mo ago
Yipy

How to deploy windows docker image with railway?

first line in dockerfile FROM mcr.microsoft.com/windows/servercore:ltsc2019 build logs where the error happens
#3 [internal] load metadata for mcr.microsoft.com/windows/servercore:ltsc2019
#3 ERROR: no match for platform in manifest sha256:56c5fe9f320b41a873f73ce5d019a9650dce2e10cb27b234d425418bef9310dd: not found
-----

> [internal] load metadata for mcr.microsoft.com/windows/servercore:ltsc2019:

-----
Dockerfile:4
-------------------
2 |
3 | # Use the latest Windows Server Core 2019 image.
4 | >>> FROM mcr.microsoft.com/windows/servercore:ltsc2019
6 | # Restore the default Windows shell for correct batch processing.
-------------------

ERROR: failed to solve: mcr.microsoft.com/windows/servercore:ltsc2019: no match for platform in manifest sha256:56c5fe9f320b41a873f73ce5d019a9650dce2e10cb27b234d425418bef9310dd: not found
#3 [internal] load metadata for mcr.microsoft.com/windows/servercore:ltsc2019
#3 ERROR: no match for platform in manifest sha256:56c5fe9f320b41a873f73ce5d019a9650dce2e10cb27b234d425418bef9310dd: not found
-----

> [internal] load metadata for mcr.microsoft.com/windows/servercore:ltsc2019:

-----
Dockerfile:4
-------------------
2 |
3 | # Use the latest Windows Server Core 2019 image.
4 | >>> FROM mcr.microsoft.com/windows/servercore:ltsc2019
6 | # Restore the default Windows shell for correct batch processing.
-------------------

ERROR: failed to solve: mcr.microsoft.com/windows/servercore:ltsc2019: no match for platform in manifest sha256:56c5fe9f320b41a873f73ce5d019a9650dce2e10cb27b234d425418bef9310dd: not found
think its because it's because its running in a Linux container and it needs to run in an windows container. How can I do this on railway?
Solution:
Unfortunately, you will not be able to run a windows based docker container on Railway. Docker runs on the Kernel of the operating system. Since Railway is built on Linux systems, your containers must be a Linux based container. In order to run a windows container, you must be running it on a windows based machine
Jump to solution
7 Replies
Brody
Brody•11mo ago
@Vin 🙂
Solution
MantisInABox
MantisInABox•11mo ago
Unfortunately, you will not be able to run a windows based docker container on Railway. Docker runs on the Kernel of the operating system. Since Railway is built on Linux systems, your containers must be a Linux based container. In order to run a windows container, you must be running it on a windows based machine
Yipy
YipyOP•11mo ago
Appreciate the quick response. Do you know if there are any plans to add support for Windows later?
MantisInABox
MantisInABox•11mo ago
Not that has been mentioned. So, probably not. Microsoft licensing is ridiculous especially in the server environments
Yipy
YipyOP•11mo ago
Do you know what the best railway like service would be that has support for Windows?
MantisInABox
MantisInABox•11mo ago
Unfortunately, you would have to use a cloud provider directly, like AWS, Azure, or GCP.... I don't know many platforms that are willing to utilize Windows for Docker hosts
Yipy
YipyOP•11mo ago
thanks
Want results from more Discord servers?
Add your server