TroubleshootingĪs the Docker Desktop system relies on different parts of your system (SMB network shares, Hyper-V virtual machine, virtual network drives) it is quite prone to some errors. Everytime you edit the created file webserver-example/index.html the change will be directly reflected in the browser after refreshing the page. Now you can open you web browser at and see the text “Hello World”. AH00489: Apache/2.4.39 (Unix) configured - resuming normal operations Set the 'ServerName' directive globally to suppress this message Status: Downloaded newer image for httpd:2.4ĪH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 172.17.0.2. To show you a simple example, we will start an Apache Httpd webserver and make it deliver some content we have in a local MINGW64 ~ So if you have any security concerns with this, you should not use this Host Volumes feature! Example usage This will expose the selected drives as network shares on your computer, with the privileges of your current user. In order to provide such a Host Volume you first need to “activate” this share on the Docker Desktop settings: Mounted Host Volumes however are added to the virtual machine via a SMB/CIFS shared folder (like a network drive). You can also view this VM by opening up the Hyper-V Manager application an you see the “MobyLinuxVM” created by Docker Desktop. To be more precise, Docker Desktop requires the Windows10 virtualization feature “Hyper-V” to be active.Īny running Linux container is then executed inside the virtual machine. To run the Linux containers, Docker Desktop uses a virtual machine running a real Linux system.
for a web application) in the host-volume directly in your IDE, and have the running docker service find those updated files immediately without the need for a deployment.Īlthough Docker containers usually run Linux binaries, there is also the “Docker Desktop” suite for Windows10 which allows you to execute Linux docker containers on a Windows system. In a lot of situations it is also useful to have directories inside a docker container mapped to a local folder on the host system.Įspecially in a development environment, where this setup allows you to modify source files (e.g. The container management system Docker is quite useful for running services or applications in a controlled, isolated environment.