After trying dockers locally I decided to build a real server using AWS to publish a static site.
I took a VPS on AWS to the “expensive” sum of 0 euros (thanks Amazon!).
As an OS I chose Windows 2016 with containers. After updating the operating system (it took me a while because the resources are limited) I installed docker.
While I was installing the program, the executable asked me if I wanted linux containers or windows containers. I chose not to use the windows containers and not to check because I did not know the meaning of the question. Docker was born on Linux so you always need Linux, what are the Windows containers?
Now I see this error screen and besides not knowing what to do I am VERY CONFUSED.
Why do I have two versions of docker? Why do I have a client version and a server version?
In local I wrote this thing here:
FROM httpd:2.4 LABEL Author="Nome Cognome" COPY ./htdocs/ /usr/local/apache2/htdocs/
cd "C:\Users\Administrator\Desktop\docker" docker build -t apache_server:v1 . docker run -d --name apache_server_container -p 8088:80 apache_server:v1 docker-machine ip
Now on the server I would like the same type of service but I would like the content of htdocs (html file of the website) to be visible to everyone, even you.
Another thing that I do not understand is because my VPS has 2 IP (one public and one private). What is the difference?
My published site will have this link:
Thanks a lot
P.S .: Bring patience I’m not a systems engineer!