-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
podman container ignores storage-opt size=
when managed using docker-compose
#11016
podman container ignores storage-opt size=
when managed using docker-compose
#11016
Comments
A friendly reminder that this issue had no activity for 30 days. |
@mheon @baude @jwhonce How should we handle this. I don't believe we allow users to specify currently the storage-opts to the remote service. Is this a key feature of compose to support this, I would guess if we wanted to support this, we would need to compare the "default" size versus the specified size of the remote client, and make sure the specified size is less then the default. |
I am not sure how Docker plays with the storage-opt value set default vs passed as command line Agilent. Logically, I would think when the command line argument is passed it is honored regardless of what the default is. Otherwise, the default is used. That is, the command line argument should override the default no matter more or less. |
Sure, and that is how it works for the client. The issue is we don't pass those values to the server. If you set them on the server side it would be followed. |
In my use-case, I don’t set any default value. There is different storage-opt policy for different containers depending on their (internal) types. |
@jwhonce Is this a bug in our docker API compatibility? Do we support passing some storage options? |
We formerly had some support (in the frontend, but not the backend) but you ripped it out of the I think we need to add it back, and figure out how to wire it into c/storage such that the options are actually respected. |
SGTM. The question is should we support this from podman-remote. |
I think the first step is determining whether c/storage even supports configuring these on a per-container (rather than per-boot) level right now - if we can't pass the options all the way down, no point. Also, I swear @rhatdan removed |
s/per-boot/per-instance - Basically, we pass in storage options once (at store init) right now. Can we pass them down as part of creating a container instead? Don't know, need to investigate. |
I know overlay can support it, but not sure if there is a mechanism to do it at container creation time. Might need to add new interfaces to the driver library. |
A friendly reminder that this issue had no activity for 30 days. |
Drivers have the ability to support size and inodes quota, but we don't allow these options to be passed down to the driver. With this fix, Podman should be able to support --storage-opt size= per container. Helps Fix: containers/podman#11016 Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Drivers have the ability to support size and inodes quota, but we don't allow these options to be passed down to the driver. With this fix, Podman should be able to support --storage-opt size= per container. Helps Fix: containers/podman#11016 Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Thank you @rhatdan. Will storage-opt option when used with docker-compose work now? |
No, still needs to be plumbed in on the Podman side. |
Do you have a curl command that I could trigger this behaviour. I have most of the plumbing done, but I want to make sure everything works correctly. @jwhonce Do you have a podman-py test we could run? |
|
Fixes: containers#11016 [NO NEW TESTS NEEDED] We have no easy way to tests this in CI/CD systems. Requires quota to be setup on directories to work. Fixes: containers#11016 Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
When a podman container is started using Docker Compose that has storage opt size=2G specified, podman ignores the option during container creation. As a result, the size limit is not honored inside the container root file-system. The
podman inspect
on the container does not show any reference of size specification.Steps to reproduce the issue:
Setup podman environment to run with docker-compose
Create a docker compose file for a container
docker-compose -f mysvc.yml up -d mysvc
Describe the results you received:
dd
command inside container can keep writing on to the root file-system regardless of what's specified in the Docker Compose fileDescribe the results you expected:
dd
command should have failed after 2G writesAdditional information you deem important (e.g. issue happens only occasionally):
Consistently
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/master/troubleshooting.md)
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
VMware VM
The text was updated successfully, but these errors were encountered: