Skip to content

[Bug]: create a container with a named volume already being mounted in another container will fail with error #1133

Closed
ddev/ddev
#8656

Description

@lgmars

I have done the following

  • I have searched the existing issues
  • If possible, I've reproduced the issue using the 'main' branch of this project

Steps to reproduce

  1. create a named volume
  2. create a linux container and mount the volume into it.
  3. create another linux container trying to mount the same named volume, and the creation will fail

Current behavior

Can't share a named volume between linux containers.

Expected behavior

I would expect apple container to be able to share named volumes between containers.

Environment

- OS: macOS 26.2 (25C56)
- Xcode: (installed with brew)
- Container: container CLI version 0.8.0

Relevant log output

stderr: Error: internalError: "failed to bootstrap container" (cause: "internalError: "failed to bootstrap container test (cause: "unknown: "Error Domain=VZErrorDomain Code=2 "The storage device attachment is invalid." UserInfo={NSLocalizedFailure=Invalid virtual machine configuration., NSLocalizedFailureReason=The storage device attachment is invalid.}"")"")

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

  1. added theissue type on Feb 2, 2026
  2. jglogan commented on Feb 2, 2026

    @jglogan
    Contributor

    @lgmars Named volumes don't work exactly like Docker Desktop.

    In Docker Desktop there is a single VM in which all of your containers live. A named volume in that world is just a directory under /var/lib/docker/volumes that gets bind mounted into whatever containers you choose.

    Each container you run in container is its own distinct VM. A named volume is disk image file on the host containing an ext4 filesystem, and mounting a named volume is equivalent to attaching the disk image file as block device in the container VM, and mounting the filesystem.

    To share named volumes in container, the VMs sharing the volume would need to run a cluster filesystem which is beyond the scope of the project. The workaround is to use "bind mounts" aka virtiofs sharing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions