2 years ago
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 foundthink 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?
8 Replies
2 years ago
@MantisInABox 🙂
2 years 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
Appreciate the quick response. Do you know if there are any plans to add support for Windows later?
2 years ago
Not that has been mentioned. So, probably not. Microsoft licensing is ridiculous especially in the server environments
Do you know what the best railway like service would be that has support for Windows?
2 years 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
Hey, jumping on this topic
Currently Azure is the "go-to" solution. They offer most Windows VMs and solutions at a competitive price (subjectivity applies, but they do seem to offer discounted rates compared to other providers probably due to owning the IP for windows).
Not nearly as cheap as Railway's Linux offerings though.