Skip to content

tests/settings.py written outside mount #66

@jacobtylerwalls

Description

@jacobtylerwalls

Before, django-docker-box would leave a settings.py under tests/, leaving me with a dirty worktree. That was not so hard to manually clean up every time.

Now, on recent versions of Docker (I'm on 4.55.0), I get the following on the first run:

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 "/host_mnt/Users/jwalls/django-docker-box/settings.py" to rootfs at "/django/source/tests/settings.py": create mountpoint for /django/source/tests/settings.py mount: mountpoint "/run/host_virtiofs/Users/jwalls/django/tests/settings.py" is outside of rootfs "/var/lib/docker/overlay2/628c5239ecc7925c7c56be8c11dd6f1dad850deb8bedc4019d955efe08bf3443/merged"

And then, once tests/settings.py exists, the second run succeeds.

So I'm now in the habit of just invoking the run twice.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions