The ulimit types in compose_spec::Service should be changed to make use of compose_spec::service::Limit<T>. The compose_spec::service::Ulimits type alias should be changed to IndexMap<Resource, ShortOrLong<Limit<u64>, Ulimit>>. The soft and hard fields of compose_spec::service::Ulimit should be changed to Limit<u64>.
From containers/podlet#117.
Support setting
services[].ulimits[]
to-1
, i.e., unlimited. While neither the Compose Specification nor thedocker run
docs allow this possibility explicitly, thepodman run --ulimit
docs do.The ulimit types in
compose_spec::Service
should be changed to make use ofcompose_spec::service::Limit<T>
. Thecompose_spec::service::Ulimits
type alias should be changed toIndexMap<Resource, ShortOrLong<Limit<u64>, Ulimit>>
. Thesoft
andhard
fields ofcompose_spec::service::Ulimit
should be changed toLimit<u64>
.This is a breaking change.