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

external storage to local docker mounts #1091

Closed
flower1024 opened this issue Apr 25, 2020 · 3 comments
Closed

external storage to local docker mounts #1091

flower1024 opened this issue Apr 25, 2020 · 3 comments
Labels
data persistence Volumes, bind mounts, etc. enhancement needs info Additional info needed to triage

Comments

@flower1024
Copy link

flower1024 commented Apr 25, 2020

Hello,
i use external storage for other docker containers which need to change files.

my problem is that docker uses bind mounts for different volumes. so it takes a VERY long time to move large files from that local storage to the normal storage.
another problem is that nextcloud is unable to move directories as it insists to rename them instead of moving - something that is not possible between mounts

i'd suggest you change the VOLUME ["/srv/www/html" ] to /var/www. that way we can mount subdirs of that directory and they are on the same mountpoint from fpm-alpine point of view.

it also would be nice to change the uid of www-data. but this can easily done outside your dockerfile. see attached dockerfile as an example
Dockerfile.log

@lucasbasquerotto
Copy link

I'd like to suggest to remove the VOLUME directive and give the consumers of the image the option to use volumes where they want (which is trivial with -v), instead of forcing in a specific path.

@joshtrichards
Copy link
Member

Hi @flower1024 - I'm following up on old issues. A few responses below. Part of the reason this probably didn't get a response is because it's really more appropriately split into 4 separate issues. :-)

i use external storage for other docker containers which need to change files. my problem is that docker uses bind mounts for different volumes. so it takes a VERY long time to move large files from that local storage to the normal storage.

I don't follow. Why can't you just point your configured volumes at your real storage? Also, you don't have to use bind mounts. Can you provide your Docker Compose file?

another problem is that nextcloud is unable to move directories as it insists to rename them instead of moving - something that is not possible between mounts

This is an upstream matter for NC Server, not the Docker image. That said, addressed in nextcloud/server#38623

i'd suggest you change the VOLUME ["/srv/www/html" ] to /var/www. that way we can mount subdirs of that directory and they are on the same mountpoint from fpm-alpine point of view.

Can you be more specific? Maybe provide a use case or example Compose file of a scenario you're thinking this would solve?

it also would be nice to change the uid of www-data. but this can easily done outside your dockerfile. see attached dockerfile as an example

Added in #1812.

@joshtrichards joshtrichards added enhancement data persistence Volumes, bind mounts, etc. needs info Additional info needed to triage labels Oct 24, 2023
@joshtrichards
Copy link
Member

Closing due to insufficient information to do anything else actionable here (and due to age).

@joshtrichards joshtrichards closed this as not planned Won't fix, can't repro, duplicate, stale Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data persistence Volumes, bind mounts, etc. enhancement needs info Additional info needed to triage
Projects
None yet
Development

No branches or pull requests

3 participants