-
Notifications
You must be signed in to change notification settings - Fork 43
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
Prevent anonymous volume creation (PROJQUAY-6053) #135
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
thanks for this, it was driving me nuts! 🤣 |
0ec904f
to
b79f44e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@robbmanes thank sm for this! Could you also add the flag for the redis.service.j2? I am seeing one anon. volume created by redis on every pod restart on my machine:
$ podman volume ls
DRIVER VOLUME NAME
local 1f63663da44c2dbc5561971877437ca2d9bdd48015fdb275eede096046123481
local c317d65382a3df07e290cced33854642fe8f66f24b3ee0f801a6e62873830545
local pg-storage
local quay-storage
Thanks for the work on this, can we finish it up and get it merged? IHAC who frequently complain about this |
@robbmanes Could take another look when you have a moment? |
When performing a mirror-registry installation or restarting the "quay-pod" service, baked-in volumes to the image for "/tmp" and "/var/log" get created every time the "quay-app" container is made within the pod. By using "--image-volume=ignore", any specifically defined Dockerfile VOLUME directives do not have volumes made for them, preventing anonymous volumes from being made by the "podman run" command. Signed-off-by: Robb Manes <[email protected]>
b79f44e
to
a8c19b6
Compare
Sorry all; I got super sick for a long time. Am doing better now, PR squashed/updated to include redis template, tested WFM. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added the redis template in a squashed commit.
When performing a mirror-registry installation or restarting the "quay-pod" service, baked-in volumes to the image for
/tmp
and/var/log
get created every time thequay-app
container is made within the pod. By using--image-volume=ignore
, any specifically defined DockerfileVOLUME
directives do not have volumes made for them, preventing anonymous volumes from being made by thepodman run
command.Prior to adding this, anonymous volumes would pile up like so for these paths:
Now just the explicitly named volumes are made from the service units and no anonymous volumes are being made: