How docke run linux container on windows server 2019? - windows

I downloaded desktop meet some error, and I found the docker desktop didn’t support on windows server.
Then I wanted to run a linux image in windows server, but I can’t find how to trans windows mode to linux mode.And more I didn’t find the dockercli.exe.
So now my question is:
dose windows server support linux mode?
If it does, how to change to such mode?
if not, how to run linux container on windows server 2019?

To run docker on windows server 2019, try this
https://computingforgeeks.com/how-to-run-docker-containers-on-windows-server-2019/
You should also install WSL Feature

Related

Is it possible install WSL or windows terminal on windows server 2008 r2?

I need to install WSL or windows Terminal to use it as a visual studio code terminal but I only find tutorials for windows 10 or windows server (2016, 2019)...
I don't know if I can install them or not on windows server 2008 r2.
Could you help me please?
Unfortunately WSL is not available for Windows Server 2008r2. The best you can achieve is to either to install Linux in a virtual machine leveraging HyperV on 2008r2, or perhaps using VMware Workstation or Virtualbox. Alternatively, for something more light weight you might get away with installing something like
Cygwin instead.
Unfortunately not. You can use Cygwin instead. It's old and out of date, but then so is Windows 2008, isn't it?

how to access WSL on Windows Server on AWS EC2?

WSL stands for Windows Subsystem for Linux. Is it even available on EC2?
All the guide I found talks about Windows Desktop, not server.
According to the docs: https://aws.amazon.com/about-aws/whats-new/2018/05/amazon-ec2-now-offers-windows-server-version-1709-and-1803-amis/
You can now use 1803 update with support for WLS.
As of August 2017, WSL is available on Windows Server insider builds..
Although I haven't tried it, I assume you could start a Windows Server 2016 instance and enable Windows Insider updates.
The installation guide for installing WSL on Windows Server is here.

Not able to log back into my Windows machine after Hyper-v installation

I have a Windows 10 machine. Recently I have installed Hyper-V 2016 server on my machine. From then whenever I start my system I only see a blue screen with various commands. I do not see any other thing other than that. Now how can I go back to my normal Windows machine?
See this image for reference:
you had Windows 10 installed on your machine now you have Microsoft Hyper-V Server 2016.
I assume you downloaded an ISO and installed that one. Whereas within Windows 10 you only have to activated a feature called Hyper-V.
Grap your latest Backups and install Windows 10 back onto your machine.
KR
Guenther

Docker on a Server 2016 Virtual Machine

I've already tried running Docker on a Windows 10 Virtual Machine without any success. I understand why, so I've given up trying to enable this. However, it's got me thinking about Windows Server 2016. As I understand it, Windows Server 2016 has docker included as a component/service, instead of an 'Add On' as it is in Windows 10. Are there any reasons why a Microsoft Server 2016 Virtual Machine would not support docker? This is more for convenience than anything else. Dual-booting with windows 10 isn't a major issue and we've done that, but it does mean in certain circumstances I have to reboot to windows 8 for certain organisation-specific content that I can't access in Windows 10.

Can I use Windows 10 Insider preview to build a docker image

I have a Eclipse App that only installs on Windows, while I have a Mac. I have downloaded the Windows 10 ISO from the insider preview program. Can I use it in docker to build a docker image? What can be the base image? The alternative is to use the VirtualBox, and install windows 10 in it. But I don't want to go for it, because I want to share the image with other colleagues who are on Windows.
If you want to run a Windows Container on a Mac you will need to intall Windows 10 Anniversay Update ISO as a VM via Virtualbox or install the operating sysem using Bootcamp.
Windows 10 Anniversay Edition now has native support for Containers so you can run docker images for Windows Server 2016 and/or Nanoserver.
Your colleagues will also need Windows 10 Anniversary Edition to run the image on their machines.
You will need a Windows virtual machine to run Windows 10 on your MAC. See also the answer in this Stackoverflow question for a discussion of docker container types and docker hosts types.
Background:
Linux-based docker containers only run on Linux docker hosts while Windows-based docker containers only run either on Windows 2016 or on Windows Nanoserver, where a Nanoserver can run on Windows 2016 or on Windows 10 Professional + Hyper-V.
If you want to run either Linux-based or Windows-based docker containers on a MAC, you will need a Linux-based or a Windows-based virtual machine, respectively.
Is it possible to exchanging Docker images instead of virtual machine images to reduce the size?
Not in your case, I think.
If you think about reducing the image size you intend to share with your colleagues, you might think about running Windows containers on a Windows virtual machine on your MACs and exchange the smaller docker images instead of sharing virtual machine images. However, this would require nested virtualization of Hyper-V and this is supported on Hyper-V-capable hardware only (see also an Hyper-V on Hyper-V example here). Since you are using a MAC, I fear, you need to share the larger virtual machine image or better find a way to share only parts of it (e.g. share project code via git instead).

Resources