Docker: Sharing a volume on Windows with Docker Toolbox

后端 未结 5 1052
囚心锁ツ
囚心锁ツ 2020-12-08 11:14

I\'m trying to setup a developer environment through a Docker container on my Windows 7 computer.

I\'ve installed Docker toolbox for Windows.

I have an

5条回答
  •  暖寄归人
    2020-12-08 11:20

    The message is a "WARNING" not an error message. Are you sure your container is not created ? Have you checked with the command "docker ps -a" ?

    If the message is the root cause of your problem, you should sort out the non-existence of /var/www/html/test inside your container. If it is not needed, you should removed it from apache configuration (probably inside the file /etc/apache2/sites-enabled/000-default.conf or /etc/apache2/apache2.conf).

    If /var/www/html/test is needed, you could try and add

    RUN mkdir /var/www/html/test
    

    inside your Dockerfile in order to make sure the directory exists.

    Also, in order to try debugging the problem, you might want to try running the container without using the volume. If there is no error, you should then enter the container ("docker exec -it php5.6_container bash") in order to debug the potential problem inside your container and check the structure of your container.

提交回复
热议问题