tomeichlersmith / denv

uniformly interact with containerized environments across runners
https://tomeichlersmith.github.io/denv/
GNU General Public License v3.0
8 stars 2 forks source link

revert directory-based mounting of entrypoint #43

Closed tomeichlersmith closed 1 year ago

tomeichlersmith commented 1 year ago

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.