When using git worktree php containers can't be started because it runs git command in entrypoint script. Since git worktree instead of storing everything in .git dir it provides .git file with the next content:
so until this directory isn't accessible any git command inside the container will not work.
To solve this issue needs to share this path inside the container:
When using
git worktree
php containers can't be started because it runs git command in entrypoint script. Since git worktree instead of storing everything in.git
dir it provides.git
file with the next content:so until this directory isn't accessible any git command inside the container will not work. To solve this issue needs to share this path inside the container:
I think it's better to add to documentation FAQ