so what should I do?
do I have to change system?
do I have to change code?
Create a server to display static pages with docker, Windows Server 2016 and AWS service [not solved]
so what should I do?
Run UNIX containers on UNIX docker hosts.
what is a “UNIX docker hosts”?
are you advising me to change system and use linux?
which version do you recommend? centos? ubuntu?
You are building UNIX container. So you need to run it on UNIX. if you need help with deploying/building UNIX containers this is not correct forum.
So I should use another code in the dockerfile to put up my server, right?
Yes, you need to build windows not unix container to run on Docker EE on Windows 2016
can you help me modify my dockerfile?
I don’t understand what you are trying to do, so not sure what you are asking. If you want some walktrhoughs how windows containers work there is bunch of articles on Internet
I would simply turn my Amazon WPS into a WEB server to publish my html files and then my static site.
if I put a file of this type in htdocs:
I would like all the clients in this world to read it!
I do not know if web server is the right term …
Here is documentation about how to run Windows containers (https://docs.microsoft.com/en-us/virtualization/windowscontainers/about/) Here is specifically a link jow to do it what you are trying to do
There are written things I already know.
I rather throw away Windows Server 2016 and install Ubuntu or Centos because I really do not know how to fix my dockerfile.
Your dockerfile is for the wrong operating system, of course it will not work. This has nothing to do with docker or Windows. If you want to build windows docker image follow instructions above.
I had not seen your second link.
now I understand.
after dinner I try to read.
I tried to follow the guide.
IIS is a really monstrous server!
On my free VPS I can not install it.
I have only 10GB of free space.
Yes, Windows containers are much bigger then unix ones, this is full blown Windows Server Core OS.
I have windows server 2016 with containers, is not there some smaller image for me?
Not if you want IIS.
I do not care about IIS.
I’m happy with html.
In the future I will use java and php. I use java more and more often than php. I do not use Microsoft languages.
In this post I would be content to read on my Windows 8.1 browser the word “Hello World!”.
It would be my first small goal.