Skip to content
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

docker-java does not work with crun 1.9 #2201

Closed
snazy opened this issue Sep 12, 2023 · 1 comment
Closed

docker-java does not work with crun 1.9 #2201

snazy opened this issue Sep 12, 2023 · 1 comment

Comments

@snazy
Copy link

snazy commented Sep 12, 2023

crun v1.9 added this change, which writes the /proc/self/oom_score_adj if the HostConfig.OomScoreAdj value is present in the create-container request JSON.

It seems that the oom-score-adj value is always serialized, even if it's not configured.

This causes all container startups to fail with crun: write to /proc/self/oom_score_adj: Permission denied.

Maybe it's sufficient to add a @JsonInclude(JsonInclude.Include.NON_DEFAULT) to at least the oomScoreAdj property?

@snazy
Copy link
Author

snazy commented Sep 12, 2023

Heads-up: docker-java does not need a patch. (Sorry for the noise)

It's an issue with crun==1.9 + podman<=4.6.2. podman>=4.6.3 should work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant