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

Cannot create container for service client: invalid volume specification #2

Open
Ravibhardwaj05 opened this issue Sep 11, 2019 · 1 comment

Comments

@Ravibhardwaj05
Copy link

Creating complex_client_1 ... error
complex_postgres_1 is up-to-date

ERROR: for complex_client_1 Cannot create container for service client: invalid volume specification: '/root/complex/client:app:rw': invalid mount config for type "bind":Creating complex_worker_1 ... error

ERROR: for complex_worker_1 Cannot create container for Recreating complex_api_1 ... done
lex/worker:app:rw': invalid mount config for type "bind": invalid mount path: 'app' mount path must be absolute

ERROR: for client Cannot create container for service client: invalid volume specification: '/root/complex/client:app:rw': invalid mount config for type "bind": invalid mount path: 'app' mount path must be absolute

ERROR: for worker Cannot create container for service worker: invalid volume specification: '/root/complex/worker:app:rw': invalid mount config for type "bind": invalid mount path: 'app' mount path must be absolute
ERROR: Encountered errors while bringing up the project.

@ObaidaAlhaasan
Copy link

Hello,
I had the same problem simply I was missing the / from the app in the client volumes, I hope it helps

      build: 
        dockerfile: Dockerfile.dev
        context: ./client
      volumes: 
        - /app/node_modules
        - ./client/:/app

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

No branches or pull requests

2 participants