Skip to content
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

windows server images #1137

Closed
miahwk opened this issue May 23, 2019 · 5 comments
Closed

windows server images #1137

miahwk opened this issue May 23, 2019 · 5 comments

Comments

@miahwk
Copy link

miahwk commented May 23, 2019

Which is the windows container image?
Does look like docker pull mcr.microsoft.com/dotnet/core/sdk:2.1-nanoserver-1803?
If use the 2.1 tag,it is the linux image.
image
image
What is the different between them? Such as tag 2.1. I just want to use windows image. Could someone help me?

@MichaelSimons
Copy link
Member

@miahwk - The 2.1 tag is a multi-platform tag. That means the tag references multiple images. When you pull the tag, you will get an image that matches your platform. If you are getting a linux image that implies to me that you are pulling the tag from a linux container environment. Windows tags can only be pulled from a Windows container environment. See this link on how to switch environments on Windows. You can run docker info to see what you container mode is set to via the OSType property.

@MichaelSimons
Copy link
Member

Closing per previous response.

@miahwk
Copy link
Author

miahwk commented May 30, 2019

@MichaelSimons Thank you. So you meas if use 2.1 tag, it will match the container OSType?

@MichaelSimons
Copy link
Member

No - If you use multi-arch tags, the container OS will be compatible with your host OS. By this I mean the architecture will be compatible, the OS type (Linux/Windows) will match and for Windows, the OS version will be compatible with the host.

@miahwk
Copy link
Author

miahwk commented May 30, 2019

@MichaelSimons I got it. Thank you for your help. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants