ExchangeUnion / xud-docker

Streamlined setup of xud and all dependencies via docker 🐳
https://docs.exchangeunion.com
GNU Affero General Public License v3.0
5 stars 5 forks source link

Hostfs mouting issue (-v /:/mnt/hostfs) #785

Closed reliveyy closed 3 years ago

reliveyy commented 3 years ago

Known issues when we try to map the whole hostfs into one contianer with -v /:/mnt/hostfs

reliveyy commented 3 years ago

And I came up with 3 solutions:

  1. Use docker run -it --rm -v /any/path:/mnt:ro alpine to check any files on host. But it's not perfect becuase it will create an empty folder if it doesn't exist on host. And it cannot handle links properly too.

  2. Write a custom Docker volume driver (too ambitious and not 100% sure)

    --mount 'type=volume,src=/,dst=/mnt/hostfs,volume-driver=mydriver,volume-opt=key1=value1,volume-opt=key2=value2'
  3. Change utils container as a native launcher so it will has direct access the whole host filesystem by default.

kilrau commented 3 years ago

As just discussed, closing here in favor of the only remaining thing left: https://github.com/ExchangeUnion/xud-docker/issues/757

  • The macOS FUSE issue

Has separate issue: #756

  • Link file breaks on Linux (This happens on RaspiBlitz);

Edge case, we'll ignore this until it becomes an issue.

  • Read-write permission too wide for container usage (It's not normal to map "/" into contianers);

Separate issue: https://github.com/ExchangeUnion/xud-docker/issues/786

We'll enforce WSL2 from now on (https://github.com/ExchangeUnion/xud-ui/issues/96).

  • Performance issue.

We'll ignore this one too until it becomes an issue.