0

I have a windows 7 machine. I wish to use docker so that I can package my windows binaries and dependencies and give them to my client without giving them explicit instructions.

My client is also on windows 7. My client is not interested in running any VM on his windows 7 machine.

Can docker help me here? What I found on internet is that one can use windows server 2016 and above to achieve this functionality but not windows 7 ...

any help?

tgogos
  • 23,218
  • 20
  • 96
  • 128
MAG
  • 2,841
  • 6
  • 27
  • 47
  • 1
    You can run windows containers on *Docker for Windows* but not on *Docker-toolbox* which is for Win 7. Check this: [Can I run windows containers using docker-toolbox on windows 7?](https://stackoverflow.com/questions/42482154/can-i-run-windows-containers-using-docker-toolbox-on-windows-7) – tgogos Oct 24 '18 at 08:04

2 Answers2

0

I don't think you can install docker on Windows 7. The install pre-requisite for docker is Windows 10 (or natively on Windows server 2016) Please see this link which is the docker install for windows.

Here is the content from the page for posterity:

System Requirements:

  • Windows 10 64bit: Pro, Enterprise or Education (1607 Anniversary Update, Build 14393 or later).
  • Virtualization is enabled in BIOS. Typically, virtualization is enabled by default. This is different from having Hyper-V enabled. For more detail see Virtualization must be enabled in Troubleshooting.
  • CPU SLAT-capable feature.
  • At least 4GB of RAM.

If you are locked into Windows binaries, then I don't know of a good solution for you unless you upgrade to he latest Windows OS, but if you can run your code on Linux then you can either use a free Linux OS and host your container there, or if you really must, you can spin up a VM on your Win 7 machine to host linux and run your container.

Jay
  • 9,561
  • 7
  • 51
  • 72
0

Currently there are two versions of Docker for the Windows platform: Docker Toolbox and Docker For Windows.

Only the former runs on Windows 7. It's a legacy solution though and doesn't let you package or run Windows containers - only Linux ones. For Windows-type containers you need the latter one, but then an upgrade of both yours and your client's machine is needed (as Jay mentioned in his comment):

System Requirements:

  • Windows 10 64bit: Pro, Enterprise or Education (1607 Anniversary Update, Build 14393 or later).
  • Virtualization is enabled in BIOS. Typically, virtualization is enabled by default. This is different from having Hyper-V enabled. For more detail see Virtualization must be enabled in Troubleshooting.
  • CPU SLAT-capable feature.
  • At least 4GB of RAM.

-- https://docs.docker.com/docker-for-windows/#what-to-know-before-you-install

Currently there's no other way to run Windows containers in Docker.

jannis
  • 4,843
  • 1
  • 23
  • 53