Skip to content

Support Relative Bind Mounts #4

Closed

Description

@adrum

It would be nice if this plugin supported the ability to specify relative bind mounts:

services:
  app:
    image: node:latest
    ports:
      - 3000:3000
    volumes:
      - ./app:/app

Current output:

Info: No 'name' field found in docker-compose.yml. Using directory name as project name: test
Stopping container: test-app

--- Processing Services ---
["app"]
Pulling Image node:latest...
Info: Created missing host directory for volume: /Users/adrum/Developer/test/app/./app 
Note: Service 'app' is not explicitly connected to any networks. It will likely use the default bridge network.

Starting service: app
Starting app
----------------------------------------

app: Error: invalidArgument: "Invalid volume name './app': must match ^[A-Za-z0-9][A-Za-z0-9_.-]*$"

Error Domain=ContainerWait Code=1 "Timed out waiting for container 'test-app' to be running." UserInfo={NSLocalizedDescription=Timed out waiting for container 'test-app' to be running.}

Activity

  1. adrum commented on Sep 13, 2025

    @adrum
    ContributorAuthor

    @Mcrich23 I have a local branch that should resolve this one as well.

    I need to spend a bit more time testing it.

  2. Mcrich23 commented on Sep 13, 2025

    @Mcrich23
    Owner

    Awesome! I haven't started making tests, but if you want to write a test for that and then open a PR, that would be amazing!

  3. Mcrich23 commented on Nov 18, 2025

    @Mcrich23
    Owner

    @adrum Just checking on this. I'm super excited to see this feature come to fruition.

  4. Cyb3rDudu commented on May 4, 2026

    @Cyb3rDudu
    Contributor

    PR #84 picks up the approach from @ttys3's #42 and adds the unit tests Morris asked for there. Tested with the exact ./app:/app shape from the issue.

  5. Mcrich23 commented on Sep 9, 2026

    @Mcrich23
    Owner

    The original ./app:/app case was addressed in #84, including the requested tests. There is a remaining issue when the Compose file is outside the working directory, now tracked in #147. I'm closing this one so we can keep that specific bug there. Thank you for following up on this!

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

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions