Open shanelord01 opened 9 months ago
This is a behaviour of Docker: these volumes are created because /watch
and /output
folders are declared in the Dockerfile. If a mapping is not explicitly set, Docker will use a temporary volume.
Thanks. Is there Any way to make them optional and become disabled if the AUTOMATED_CONVERSION=0 is set?
Not to my knowledge. Volumes creation is not controlled by the container itself.
Current Behavior
I have these disabled in my docker-compose:
-v /home/user/HandBrake/watch:/watch:rw \
-v /home/user/HandBrake/output:/output:rw \
and put AUTOMATED_CONVERSION=0 in my environment
but these directories are still being mounted as non persistent volumes
Expected Behavior
Don't create mounts for them if automated conversion is disabled and they are not required
Steps To Reproduce
comment out the volumes and set AUTOMATED_CONVERSION=0
You will see docker create non persistent volumes for these.
Environment
Container creation
version: '3' services: handbrake: image: jlesage/handbrake:latest ports:
video_nfs:/storage
deploy: resources: reservations: devices:
volumes: handbrake_config: external: true video_nfs: external: true
Container log
Container inspect
No response
Anything else?
No response