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

Unable to access mounted dir from the host #380

Open
koichirose opened this issue Dec 19, 2024 · 0 comments
Open

Unable to access mounted dir from the host #380

koichirose opened this issue Dec 19, 2024 · 0 comments

Comments

@koichirose
Copy link

Following the readme here, I created this docker-compose.restore.yml file:

services:
  borgmatic:
    container_name: borg-restore
    cap_add:
      - SYS_ADMIN
    volumes:
      - /tmp/borg:/restore
    security_opt:
      - apparmor:unconfined
      - label:disable
    devices:
      - /dev/fuse:/dev/fuse
    command: /bin/sh

Then I run:
docker compose -f $HOME/docker/borgmatic/docker-compose.yml -f $HOME/docker/borgmatic/docker-compose.restore.yml run --rm borgmatic

And I run this inside the container:
borg mount --remote-path=borg1 [email protected]:myrepo /restore (repo is at rsync.net)

I can browse /restore from within the container, but /tmp/borg on the host contains 0 files. I also tried different dirs in my host.
What am I missing?

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

1 participant