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

Improve error message: failed to mount local volume, no such file or directory #9971

Closed
KES777 opened this issue Nov 3, 2022 · 1 comment · Fixed by compose-spec/compose-go#332

Comments

@KES777
Copy link

KES777 commented Nov 3, 2022

Description

Error response from daemon: error while mounting volume '/var/lib/docker/volumes/pgdb_pgdb-data/_data': failed to mount local volume: mount .//db:/var/lib/docker/volumes/pgdb_pgdb-data/_data, flags: 0x1000: no such file or directory

Would be nice if docker compose report that bind requires absolute path.

volumes:
  pgdb-data:
    driver: local
    driver_opts:
      type: 'none'
      o: 'bind'
      device: './db'

Related to #9191

@lehkost16
Copy link

B X. Yh

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

Successfully merging a pull request may close this issue.

3 participants