HOW_TO_USE_DOCKER.md - Missing -ItemType File for .env creation #879
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Missing New-Item -ItemType for .env default to a folder when it should be a file (Docker won't run when that happen since a file is expected)
Pull Request Type
Relevant Issues
Here is the error without specifying -ItemType File for the docker mount of the .env file.
This happen because .env get created as a folder on the local system.
docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container
init: error mounting "/run/desktop/mnt/host/e/Docker/anythingllm/.env" to rootfs at "/app/server/.env": mount /run/desktop/mnt/host/e/Docker/anythingllm/.env:/app/server/.env (via /proc/self/fd/9), flags: 0
x5000: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type.