最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

docker - How to move a ddev project from Mac to PC? - Stack Overflow

programmeradmin1浏览0评论

I started a ddev-based Craft CMS project on a Mac, and it runs fine there. After checking everything in to git and cloning the repo onto the PC, I am unable to start or use the project on the PC. On both Mac and PC I am using Rancher, if that matters.

When I run ddev start on the PC, I get:

$ ddev start
Starting xyz...
Building project images...
.2025/01/30 16:19:04 http2: server: error reading preface from client //./pipe/docker_engine: file has already been closed
Project images built in 2s.
 Container ddev-xyz-db  Recreate
 Container ddev-xyz-web  Recreate
 Container ddev-xyz-db  Recreated
 Container ddev-xyz-web  Recreated
 Container ddev-xyz-db  Started
 Container ddev-xyz-web  Started
You have Mutagen enabled and your 'craftcms' project type doesn't have `upload_dirs` set.
For faster startup and less disk usage, set upload_dirs to where your user-generated files are stored.
If this is intended you can disable this warning with `ddev config --disable-upload-dirs-warning`.
Starting Mutagen sync process...
..Mutagen sync flush completed in 5s.
For details on sync status 'ddev mutagen st xyz -l'
Waiting for containers to become ready: [web db]
ls: cannot access '/mnt/ddev_config/nginx_full/nginx-site.conf': No such file or directory
Something is wrong with your Docker provider and /mnt/ddev_config is not mounted from the project .ddev folder. Your project cannot normally function successfully with this situation. Is your project in your home directory?
Starting ddev-router if necessary...
 Container ddev-router  Running
Successfully started xyz
Your project can be reached at 

When I go to the site URL, I just get a 404.

Is there some step I am missing when moving the project to a PC?

发布评论

评论列表(0)

  1. 暂无评论