You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
is zero, which is unexpected. The right default value for this value should be nil (ie explicitly not provided by the user, so the container engine shall not try to set the oom score adjutement). When docker is used as a client to target podman, podman thinks the user explicitly provided 0 while most of the time people don't even set this.
Would it be possible to change the type of this oomScoreAdj to some "optional int" (I don't know how this is best written in go, as I am not myself a go developer) ?
Reproduce
Given the description, I don't think reproduction steps are needed.
Expected behavior
0 shouldn't be the default behavior of oomScoreAdj, it should be nil and no value passed to the docker deamon.
docker version
Any docker version
docker info
Not needed
Additional Info
No response
The text was updated successfully, but these errors were encountered:
Description
Hi,
As described in containers/podman#19930 (comment) it seems that currently in the docker client code, the default value of
oomScoreAdj
cli/cli/command/container/opts.go
Line 92 in 843951e
nil
(ie explicitly not provided by the user, so the container engine shall not try to set the oom score adjutement). When docker is used as a client to target podman, podman thinks the user explicitly provided 0 while most of the time people don't even set this.Would it be possible to change the type of this
oomScoreAdj
to some "optional int" (I don't know how this is best written in go, as I am not myself a go developer) ?Reproduce
Given the description, I don't think reproduction steps are needed.
Expected behavior
0 shouldn't be the default behavior of
oomScoreAdj
, it should benil
and no value passed to the docker deamon.docker version
docker info
Additional Info
No response
The text was updated successfully, but these errors were encountered: