Docker Community Forums

Share and learn in the Docker community.

Is there possible to run nano server image with using docker container on Linux(Centos)

I am using Centos OS and there are docker some container on Linux.I want to install nano server image with using docker CLI on linux operating system.I couldnt see any support for this scenario.Can you help us how we create nano server image on Linux ?If I work nano server image on Linux , I want to run some windows services ,.
Let me show something document or explain procedure

Containers provide process isolation on a shared OS, rather than OS isolation on shared hardware that you get with VMs. Since the OS is shared, the host OS needs to be able to run the desired binaries. You will see this in the architecture of the docker engine and the architecture of the image you want to run, they must be compatible:

$ docker system info --format ‘{{.OSType}} {{.Architecture}}’
linux x86_64

$ docker image inspect busybox --format ‘{{.Os}} {{.Architecture}}’
linux amd64
If you try to run an architecture that isn’t compatible with your host, you will get an error because the binary format isn’t recognized by the kernel:

$ docker image pull --platform arm64 busybox:latest
latest: Pulling from library/busybox
acafde7ce2e7: Pull complete
Digest: sha256:2a03a6059f21e150ae84b0973863609494aad70f0a80eaeb64bddd8d92465812
Status: Downloaded newer image for busybox:latest

$ docker run -it --rm busybox:latest echo hello
standard_init_linux.go:190: exec user process caused “no such file or directory”
Desktop versions of Docker, and the Windows Server version of Docker, include a Linux VM under the covers to run Linux containers (Linux containers are the dominant container environment, so Docker implements this using Linuxkit, to simplify the developer workflow). For Windows, there is a switch in the engine to use the Linux VM or run native Windows containers.

However, Docker does not have an embedded VM for Windows to run their binaries on a Linux host (since Windows is not open source and would require licensing), so the only way to run Windows native containers is on a Windows host.

As I understand to you explain ,we dont have option to the only way to install windows nano server or window server run on a Windows host.Is there any solve without run on a windows host ?(such as any tool , program or etc.)

Thank you

Not liking the anwer, doesn’t make it less valid.

It is not possible to run Windows containers on Linux host.