Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

revert directory-based mounting of entrypoint #43

Merged
merged 2 commits into from
Sep 13, 2023

Conversation

tomeichlersmith
Copy link
Owner

if the parent of the directory of the entrypoint is not mounted/created
within the container image, then docker responds with an error about how
the target directory does not exist. We can avoid this error by mounting
the single file which docker recognizes as a "symlink"-style mount and
can ignore the fact that its parent directories may not exist

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: exec: "/home/tom/.local/bin/_denv_entrypoint": stat /home/tom/.local/bin/_denv_entrypoint: no such file or directory: unknown.

if the directory the entrypoint is inside of is not mounted/created
within the container image, then docker responds with an error about how
the target directory does not exist. We can avoid this error by mounting
the single file which docker recognizes as a "symlink"-style mount and
can ignore the fact that its parent directories may not exist

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: exec: "/home/tom/.local/bin/_denv_entrypoint": stat /home/tom/.local/bin/_denv_entrypoint: no such file or directory: unknown.
@tomeichlersmith tomeichlersmith marked this pull request as ready for review September 13, 2023 17:07
@tomeichlersmith tomeichlersmith merged commit 510e4c1 into main Sep 13, 2023
5 checks passed
@tomeichlersmith tomeichlersmith deleted the revert-dir-mount branch September 13, 2023 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant