容器DDEV / Typo3 Windows 10中缺少项目文件 [英] Project files missing in container DDEV / Typo3 Windows 10

查看:87
本文介绍了容器DDEV / Typo3 Windows 10中缺少项目文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows 10机器上运行了 Docker Toolbox V18.03 ,以及 DDEV 1.0 Typo3
当我运行 ddev start 时,容器正在启动,我可以使用 ddev ssh 访问该容器。
但是主机中的项目文件不会复制到容器中。

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.

此处的解决方案启动ddev时我收到 ngnix 403 Forbidden 不能解决我的问题...

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

推荐答案

这基本上意味着docker-toolbox根本不会挂载您的项目,当然在这种情况下,ddev无法正常工作。在docker工具箱上,这通常意味着您正在尝试使用主目录之外的路径。我建议您使用主目录,否则请使用它。另请参见如何在C:\ Windows上的Docker Toolbox上使用Windows / Docker for Windows的用户

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

看到在使用Docker的Windows上出现此行为的其他原因:

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


  1. 更改了root密码,并且docker需要重新共享文件系统(最简单的解决方法是重置为出厂默认设置)

  2. 分配给docker的资源不足(通常是内存)

  3. 首先未共享驱动器(适用于Windows的Docker)
  4. li>
  5. 尝试共享网络驱动器(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)

也...如果您具有Win10 Pro或Enterprise,请尝试Docker for Windows(仅在完全卸载Docker Toolbox之后)。否则,请重新启动(或重新安装)docker工具箱。

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.

尝试以下简单测试(来自 https://ddev.readthedocs.io/en/latest/users/docker_installation/#testing-your-docker-installation ),即可运行docker工具箱。在您要工作的目录(一个ddev项目目录,也许是您的主目录)中,使用git bash,您可以:

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

您应该看到列出的当前目录的内容。如果可行,则表示docker已成功挂载您在其中运行的目录。如果无效,则意味着docker和ddev无法为您工作。但是您可以通过重新安装docker toolbox使其正常工作。 (别忘了卸载docker工具箱时,还必须 rm -r〜/ .docker 。)

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.)

这篇关于容器DDEV / Typo3 Windows 10中缺少项目文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆