Project files missing in container DDEV / Typo3 Windows 10

倖福魔咒の 提交于 2019-12-12 01:05:03

问题


I have Docker Toolbox V18.03 running on a Windows 10 machine, together with DDEV 1.0 and Typo3. When I run ddev start, the containers are starting and I can access to the container with ddev ssh. But the project files from my host are not copied to the container.

This solutions here I get an `ngnix 403 Forbidden' when starting ddev won't fix my issue ...


回答1:


That basically means that docker-toolbox is not mounting your project at all, and of course nothing about ddev can work in that case. On docker toolbox is often means that you're trying to use a path outside your home directory. I recommend you use your home directory if you're not. See also How to use a directory outside C:\Users with Docker Toolbox on Windows/Docker for Windows

I've seen these other reasons for this behavior on Windows with Docker:

  1. Root password changed and docker needs to re-share filesystem (Easiest fix is to reset to factory defaults)
  2. inadequate resources (memory usually) assigned to docker
  3. Drive not shared in the first place (Docker for Windows)
  4. Trying to share a network drive (Docker won't do it)

Also... If you have Win10 Pro or Enterprise, please try Docker for Windows (only after full uninstall of Docker Toolbox). Otherwise, restart (or reinstall) docker toolbox.

Try this simple test (from https://ddev.readthedocs.io/en/latest/users/docker_installation/#testing-your-docker-installation) once you have docker toolbox running. In the directory where you want to work (a ddev project directory, maybe your home directory), using git bash, you can:

docker run -t --rm -v /$PWD:/junk busybox ls //junk

You should see the contents of the current directory listed. If that works, it means docker is successfully mounting the directory you ran it in. If it doesn't work, it means docker and ddev can not work for you. But you'll get it working, probably by reinstalling docker toolbox. (Don't forget when uninstalling docker toolbox you have to rm -r ~/.docker as well.)



来源:https://stackoverflow.com/questions/52334250/project-files-missing-in-container-ddev-typo3-windows-10

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!