-
Notifications
You must be signed in to change notification settings - Fork 188
Labels
Description
Taking the example docker-compose.yml from README:
services:
s3mock:
image: adobe/s3mock:latest
environment:
- debug=true
- COM_ADOBE_TESTING_S3MOCK_STORE_RETAIN_FILES_ON_EXIT=true
- COM_ADOBE_TESTING_S3MOCK_STORE_ROOT=containers3root
ports:
- 9090:9090
- 9191:9191
volumes:
- ./locals3root:/containers3root
And running it looking for the internal directory:
docker compose up | grep "as root folder."
We see the following output:
s3mock-1 | OpenJDK 64-Bit Server VM warning: Ignoring option --illegal-access=warn; support was removed in 17.0
s3mock-1 | OpenJDK 64-Bit Server VM warning: Unable to get SVE vector length on this system. Disabling SVE. Specify -XX:UseSVE=0 to shun this warning.
s3mock-1 | 2025-07-24T18:29:04.436Z INFO 1 --- [ main] c.a.t.s3mock.store.StoreConfiguration : Successfully created "/s3mockroot" as root folder. Will retain files on exit: true
As you can see it created a folder “s3mockroot” rather than using the specified “containers3root”. It looks like the environment variable is not followed.