-
-
Notifications
You must be signed in to change notification settings - Fork 64
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
Volume on Host / Containers not reflecting Bucket Contents #42
Comments
Are you running this against something else than AWS? In that case, you would need to specify the URL at which to contact the S3 API, e.g. |
@efrecon I had the same problem. Inside container files are existing. But in volume nothing. I tried to use docker volumes and volume mapping to host machine. The same behaviour.
|
I did an experiment. I opened shell in s3fs and umount /opt/s3fs/bucket. Then I tried to create a folder. And this folder was showed in another container. Then I deleted folder 'test' and run Also I build a new image from ubuntu latest and there is the same problem |
@logicalor heya! did you manage to figure out a fix to this? I have the same issue, when i exec into the container and modify the contents of the bucket folder, it works, but not when i mount it to the host and then mount things from the host into the other containers |
It seems as if the volume from the container is not getting mapped to the host container from what i'm seeing, 'cause all the other services mount properly to the host, except s3fs |
@logicalor I figured out the issue with the help of my friend and trial / error... There is a bug in docker compose plugin it seems docker/compose#9380 so when you run it using Fixed by uninstalling docker-compose-plugin and installing standalone docker-compose |
@TheNexter thanks :) i already figured it out tho, the issue was me using the compose plugin for docker instead of standalone docker-compose... Unfortunately setting propagation just plain didn't work with the compose plugin |
Just some tips from my experience:
Possible workarounds:
Thanks to the package contributors for your efforts! |
Thanks for figuring this out. I have added a mention of this issue in the main README. |
OS: Ubuntu 22.04
Docker Version: 20.10.22
Sample Docker-Compose:
The issue I'm having is when I run
docker compose up
against the above config (some other containers and env vars omitted), the s3fs volumes don't appear to be shared with the host or containers.This is the output from a docker compose log for the s3fs-public container:
If I
docker exec s3fs-public sh
and navigate to./bucket
I can see the contents of the remote s3 bucket. But if I am on the host and navigate to$VOLUME_S3FS_PUBLIC
(which the container creates - in this case/media/s3fs-public
) then I can't see the contents of the remote s3 bucket. Similarly, if Idocker exec php-fpm bash
and navigate to/var/www/html/sites/default/files
I can't see the contents of the remote s3 bucket either.I have also tried cloning this repo, setting my S3 credentials in a
.env
, and runningdocker compose up
against the untoucheddocker-compose.yml
file, but am getting the same result - i.e. can't see the remote s3 files in./bucket
.Is there additional configuration I need to make in order for the mounted s3fs to be shared with the host and other containers?
Thanks.
The text was updated successfully, but these errors were encountered: