Docker and Windows PowerShell config.

NorseMan

Member
I wanted to try Docker to see how it works in my environment.
I have a question about the installation that may crash with how I have arranged the folder hierarchy locally on my PC. All my web pages are stored in the www folder, which contains the folders with my web pages.
When I install Docker, or rather during the config of Docker when I specify an empty directory in Windows PowerShell, this directory must be empty. One question is: Why is that? The second is: What can happen if that directory is not empty of files and other folders?

The WWW directory is empty of files (if you know what I mean) but contains all the directories containing the various web pages I have stored on my developer PC. My third question is: Does it matter if the WWW directory is not empty when I specify this in Windows PowerShell, would it help to move the folders out of the WWW directory until I am finished configuring docker via Windows PowerShell?
 
The docker is not related to www, it is a service where you can run any application inside the container. First you need to install docker to be able start the docker service, during that you don't need to think about any web service, just install it as i.ex. another type of database (that also should work in the background).
When the docker will be ready then you can find or prepare an image that contains environment that you need like that one: https://hub.docker.com/r/tomsik68/xampp
Then using the docker you can run the whole environment with php, mysql, phpmyadmin and apache2 from the image. Then you need to point the image to use the directory with yours www directory
 
Back
Top