-
Notifications
You must be signed in to change notification settings - Fork 563
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support mcr.microsoft.com/windows/servercore #661
Comments
Hi 👋
Unfortunately, all the images hosted by this repo (& pointed by the link) are Linux based which works with VS Code and the Dev containers extension. Hence, they support Linux based containers.
@Sauci Looks like you are expecting a Windows container to work with your setup? We have microsoft/vscode-remote-release#445 open for adding support for Windows Containers. Feel free to correct me if I have misunderstood your question. // cc @bamurtaugh for any other thoughts. |
Hi @samruddhikhandale, thank you for your detailed answer. You got it right, I'm trying to run a Windows container as devcontainer. The linked issue you sent is exactly the problem we have, I hope it will be fixed at some point, as it looks like many people are expecting this feature... I think this comment makes sense, so I will keep fingers crossed! |
Atualmente, a arquitetura dos contêineres Dev Container no Visual Studio Code é projetada principalmente para sistemas operacionais baseados em Linux. Por essa razão, pode ser desafiador encontrar uma imagem devcontainer baseada no mcr.microsoft.com/windows/servercore para uso no VSCode. Se você precisa configurar um ambiente de desenvolvimento com ferramentas específicas que são executadas apenas no Windows, você pode considerar a seguinte abordagem: Multi-Stage Build com Docker para Windows: Stage 1: Construir com base no WindowsFROM mcr.microsoft.com/windows/servercore AS builder Configuração das ferramentas específicas no ambiente do WindowsStage 2: Copiar apenas o necessário para uma imagem LinuxFROM mcr.microsoft.com/devcontainers/base:linux Configurações adicionais para o ambiente LinuxIsso permite que você aproveite as ferramentas específicas do Windows durante a construção, mas ainda tenha uma imagem final que possa ser usada como base no Dev Container. Custom Dev Container Script: Use uma imagem Linux como baseFROM mcr.microsoft.com/devcontainers/base:linux Copie o script personalizado para o contêinerCOPY setup-script.sh /usr/local/bin/ Defina o script como o comando de inicialização padrãoENTRYPOINT ["/usr/local/bin/setup-script.sh"] |
Hello,
After a bunch of researches, I've not been able to find a devcontainer image based on mcr.microsoft.com/windows/servercore anywhere. My idea was to setup an image based on this image (I need this one as our dev environment uses several tools running on Windows only) and run it in VSCode, but sadly it seems like it is not supported yet. Did I miss documentation on how to achieve that somewhere? Looking at this link, none of those images run on Docker for Windows.
Thanks in advance for your feedback.
The text was updated successfully, but these errors were encountered: