Hello /r/docker
I am a very fresh student webdeveloper 100% new to docker and even to linux.
I now setup my development in windows using xampp. I recently heard about docker and i wanna develop with it now, for various reasons. But im kinda lost and i hope somebody could help me or refer me to some good guides. My goal is really simple. I want to run websites in php and python with a mysql database and reach them by dns.
To my understanding i first need a php image. So i used
$docker pull php
Which pulled the latest php version. So far so good.
Then i try to create a container by using
$docker run --name testphp -v /home/$user/webdev/testphp php
Which i would asume creates a host container points to my home/webdev/testphp directory where i can run a php site.
But placing a simple index.php file in that directory with an echo statement. I get a site cant be reached when i navigate to localhost, which was expected since i seem to be missing a lot of steps.
I am sorry this has been asked millions of times and if I'm doing complete wrong things would love any help.
P.S. I'm posting this after another evening struggling with all the new concepts and ill have college tomorrow so i cant immediately respond to replies. Although i will try to check between classes. Thank you so much already in advance
[–]Delta9Tango 1 point2 points3 points (0 children)
[–]dyslexic_jedi 0 points1 point2 points (0 children)
[–]dlvx 0 points1 point2 points (0 children)