Features
- Podman now supports the Gitlab Runner (using the Docker executor), allowing its use in Gitlab CI/CD pipelines.
- A new command has been added,
podman pod clone, to create a copy of an existing pod. It supports several options, including--startto start the new pod,--destroyto remove the original pod, and--nameto change the name of the new pod (#12843). - A new command has been added,
podman volume reload, to sync changes in state between Podman's database and any configured volume plugins (#14207). - A new command has been added,
podman machine info, which displays information about the host and the versions of various machine components. - Pods created by
podman play kubecan now be managed by systemd unit files. This can be done via a new systemd service,podman-kube@.service- e.g.systemctl --user start podman-play-kube@$(systemd-escape my.yaml).servicewill run the Kubernetes pod or deployment contained inmy.yamlunder systemd. - The
podman play kubecommand now honors theRunAsUser,RunAsGroup, andSupplementalGroupssetting from the Kubernetes pod's security context. - The
podman play kubecommand now supports volumes with theBlockDeviceandCharDevicetypes (#13951). - The
podman play kubecommand now features a new flag,--userns, to set the user namespace of created pods. Two values are allowed at present:hostandauto(#7504). - The
podman play kubecommand now supports setting the type of created init containers via theio.podman.annotations.init.container.typeannotation. - Pods now have include an exit policy (configurable via the
--exit-policyoption topodman pod create), which determines what will happen to the pod's infra container when the entire pod stops. The default,continue, acts as Podman currently does, while a new option,stop, stops the infra container after the last container in the pod stops, and is used by default for pods frompodman play kube(#13464). - The
podman pod createcommand now allows the pod's name to be specified as an argument, instead of using the--nameoption - for example,podman pod create mypodinstead of the priorpodman pod create --name mypod. Please note that the--nameoption is not deprecated and will continue to work. - The
podman pod createcommand's--shareoption now supports adding namespaces to the set by prefacing them with+(as opposed to specifying all namespaces that should be shared) (#13422). - The
podman pod createcommand has a new option,--shm-size, to specify the size of the/dev/shmmount that will be shared if the pod shares its UTS namespace (#14609). - The
podman pod createcommand has a new option,--uts, to configure the UTS namespace that will be shared by containers in the pod. - The
podman pod createcommand now supports setting pod-level resource limits via the--cpus,--cpuset-cpus, and--memoryoptions. These will set a limit for all containers in the pod, while individual containers within the pod are allowed to set further limits. Look forward to more options for resource limits in our next release! - The
podman createandpodman runcommands now include the-cshort option for the--cpu-sharesoption. - The
podman createandpodman runcommands can now create containers from a manifest list (and not an image) as long as the--platformoption is specified (#14773). - The
podman buildcommand now supports a new option,--cpp-flag, to specify options for the C preprocessor when usingContainerfile.infiles that require preprocessing. - The
podman buildcommand now supports a new option,--build-context, allowing the user to specify an additional build context. - The
podman machine inspectcommand now prints the location of the VM's Podman API socket on the host (#14231). - The
podman machine initcommand on Windows now fetches an image with packages pre-installed (#14698). - Unused, cached Podman machine VM images are now cleaned up automatically. Note that because Podman now caches in a different directory, this will not clean up old images pulled before this change (#14697).
- The default for the
--image-volumeoption topodman runandpodman createcan now have its default set through theimage_volume_modesetting incontainers.conf(#14230). - Overlay volumes now support two new options,
workdirandupperdir, to allow multiple overlay volumes from different containers to reuse the sameworkdirorupperdir(#14427). - The
podman volume createcommand now supports two new options,copyandnocopy, to control whether contents from the overmounted folder in a container will be copied into the newly-created named volume (copy-up). - Volumes created using a volume plugin can now specify a timeout for all operations that contact the volume plugin (replacing the standard 5 second timeout) via the
--opt o=timeout=option topodman volume create(BZ 2080458). - The
podman volume lscommand's--filter name=option now supports regular expression matching for volume names (#14583). - When used with a
podman machineVM, volumes now support specification of the 9p security model using thesecurity_modeloption topodman create -vandpodman run -v. - The remote Podman client's
podman pushcommand now supports the--remove-signaturesoption (#14558). - The remote Podman client now supports the
podman image scpcommand. - The
podman image scpcommand now supports tagging the transferred image with a new name. - The
podman network lscommand supports a new filter,--filter dangling=, to list networks not presently used by any containers (#14595). - The
--conditionoption topodman waitcan now be specified multiple times to wait on any one of multiple conditions. - The
podman eventscommand now includes the-fshort option for the--filteroption. - The
podman pullcommand now includes the-ashort option for the--all-tagsoption. - The
podman stopcommand now includes a new flag,--filter, to filter which containers will be stopped (e.g.podman stop --all --filter label=COM.MY.APP). - The Podman global option
--urlnow has two aliases:-Hand--host. - The
podman network createcommand now supports a new option with the defaultbridgedriver,--opt isolate=, which isolates the network by blocking any traffic from it to any other network with theisolateoption enabled. This option is enabled by default for networks created using the Docker-compatible API. - Added the ability to create sigstore signatures in
podman pushandpodman manifest push. - Added an option to read image signing passphrase from a file.
Changes
- Paused containers can now be killed with the
podman killcommand. - The
podman system prunecommand now removes unused networks. - The
--userns=keep-idand--userns=nomapoptions to thepodman runandpodman createcommands are no longer allowed (instead of simply being ignored) with root Podman. - If the
/rundirectory for a container is part of a volume, Podman will not create the/run/.containerenvfile (#14577). - The
podman machine stopcommand on macOS now waits for the machine to be completely stopped to exit (#14148). - All
podman machinecommands now only support being run as rootless, given that VMs only functioned when run rootless. - The
podman unpause --allcommand will now only attempt to unpause containers that are paused, not all containers. - Init containers created with
podman play kubenow default to theoncetype (#14877). - Pods created with no shared namespaces will no longer create an infra container unless one is explicitly requested (#15048).
- The
podman create,podman run, andpodman cpcommands can now autocomplete paths in the image or container via the shell completion. - The
libpod/commonpackage has been removed as it's not used anywhere. - The
--usernsoption topodman createandpodman runis no longer accepted when an explicit UID or GID mapping is specified (#15233).
Bugfixes
- Fixed a bug where bind-mounting
/devinto a container which used the--initflag would cause the container to fail to start (#14251). - Fixed a bug where the
podman image mountcommand would not pretty-print its output when multiple images were mounted. - Fixed a bug where the
podman volume importcommand would print an unrelated error when attempting to import into a nonexistent volume (#14411). - Fixed a bug where the
podman system resetcommand could race against other Podman commands (#9075). - Fixed a bug where privileged containers were not able to restart if the layout of host devices changed (#13899).
- Fixed a bug where the
podman cpcommand would overwrite directories with non-directories and vice versa. A new--overwriteflag topodman cpallows for retaining the old behavior if needed (#14420). - Fixed a bug where the
podman machine sshcommand would not preserve the exit code from the command run via ssh (#14401). - Fixed a bug where VMs created by
podman machinewould fail to start when created with more than 3072MB of RAM on Macs with M1 CPUs (#14303). - Fixed a bug where the
podman machine initcommand would fail when run fromC:\Windows\System32on Windows systems (#14416). - Fixed a bug where the
podman machine init --nowdid not respect proxy environment variables (#14640). - Fixed a bug where the
podman machine initcommand would fail if there is no$HOME/.sshdir (#14572). - Fixed a bug where the
podman machine initcommand would add a connection even if creating the VM failed (#15154). - Fixed a bug where interrupting the
podman machine startcommand could render the VM unable to start. - Fixed a bug where the
podman machine list --formatcommand would still print a heading. - Fixed a bug where the
podman machine listcommand did not properly set theStartingfield (#14738). - Fixed a bug where the
podman machine startcommand could fail to start QEMU VMs when the machine name started with a number. - Fixed a bug where Podman Machine VMs with proxy variables could not be started more than once (#14636 and #14837).
- Fixed a bug where containers created using the Podman API would, when the Podman API service was managed by systemd, be killed when the API service was stopped (BZ 2052697).
- Fixed a bug where the
podman -hcommand did not show help output. - Fixed a bug where the
podman waitcommand (and the associated REST API endpoint) could return before a container had fully exited, breaking some tools like the Gitlab Runner. - Fixed a bug where healthchecks generated
execevents, instead ofhealth_statusevents (#13493). - Fixed a bug where the
podman pod pscommand could return an error when run at the same time aspodman pod rm(#14736). - Fixed a bug where the
podman systemd dfcommand incorrectly calculated reclaimable storage for volumes (#13516). - Fixed a bug where an exported container checkpoint using a non-default OCI runtime could not be restored.
- Fixed a bug where Podman, when used with a recent runc version, could not remove paused containers.
- Fixed a bug where the remote Podman client's
podman manifest rmcommand would remove images, not manifests (#14763). - Fixed a bug where Podman did not correctly parse wildcards for device major number in the
podman runandpodman createcommands'--device-cgroup-ruleoption. - Fixed a bug where the
podman play kubecommand on 32 bit systems where the total memory was calculated incorrectly (#14819). - Fixed a bug where the
podman generate kubecommand could set ports and hostname incorrectly in generated YAML (#13030). - Fixed a bug where the
podman system df --format ""command would not output theSizeandReclaimablefields (#14769). - Fixed a bug where the remote Podman client's
podman pullcommand would display duplicate progress output. - Fixed a bug where the
podman system servicecommand could leak memory when a client unexpectedly closed a connection when reading events or logs (#14879). - Fixed a bug where Podman containers could fail to run if the image did not contain an
/etc/passwdfile (#14966). - Fixed a bug where the remote Podman client's
podman pushcommand did not display progress information (#14971). - Fixed a bug where a lock ordering issue could cause
podman pod rmto deadlock if it was run at the same time as a command that attempted to lock multiple containers at once (#14929). - Fixed a bug where the
podman rm --forcecommand would exit with a non-0 code if the container in question did not exist (#14612). - Fixed a bug where the
podman container restorecommand would fail when attempting to restore a checkpoint for a container with the same name as an image (#15055). - Fixed a bug where the
podman manifest push --rmcommand could remove image, instead of manifest lists (#15033). - Fixed a bug where the
podman run --rmcommand could fail to remove the container if it failed to start (#15049). - Fixed a bug where the
podman generate systemd --newcommand would create incorrect unit files when the container was created with the--sdnotifyparameter (#15052). - Fixed a bug where the
podman generate systemd --newcommand would fail when-h <hostname>was used to create the container (#15124).
API
- The Docker-compatible API now supports API version v1.41 (#14204).
- Fixed a bug where containers created via the Libpod API had an incorrect umask set (#15036).
- Fixed a bug where the
remoteparameter to the Libpod API's Build endpoint for Images was nonfunctional (#13831). - Fixed a bug where the Libpod List endpoint for Containers did not return the
application/jsoncontent type header when there were no containers present (#14647). - Fixed a bug where the Compat Stats endpoint for Containers could return incorrect memory limits (#14676).
- Fixed a bug where the Compat List and Inspect endpoints for Containers could return incorrect strings for container status.
- Fixed a bug where the Compat Create endpoint for Containers did not properly handle disabling healthchecks (#14493).
- Fixed a bug where the Compat Create endpoint for Networks did not support the
mtu,name,mode, andparentoptions (#14482). - Fixed a bug where the Compat Create endpoint for Networks did not allow the creation of networks name
bridge(#14983). - Fixed a bug where the Compat Inspect endpoint for Networks did not properly set netmasks in the
SecondaryIPAddressesandSecondaryIPv6Addressesfields (#14674). - The Libpod Stats endpoint for Pods now supports streaming output via two new parameters,
streamanddelay(#14674).
Misc
- Podman will now check for nameservers in
/run/NetworkManager/no-stub-resolv.confif the/etc/resolv.conffile only contains a localhost server. - The
podman buildcommand now supports caching with builds that specify--squash-allby allowing the--layersflag to be used at the same time. - Podman Machine support for QEMU installations at non-default paths has been improved.
- The
podman machine sshcommand no longer prints spurious warnings every time it is run. - When accessing the WSL prompt on Windows, the rootless user will be preferred.
- The
podman infocommand now includes a field for information on supported authentication plugins for improved Docker compatibility. Authentication plugins are not presently supported by Podman, so this field is always empty. - The
podman system prunecommand now no longer prints theDeleted Imagesheader if no images were pruned. - The
podman system servicecommand now automatically creates and moves to a sub-cgroup when running in the root cgroup (#14573). - Updated Buildah to v1.27.0
- Updated the containers/image library to v5.22.0
- Updated the containers/storage library to v1.42.0
- Updated the containers/common library to v0.49.1
- Podman will automatically create a sub-cgroup and move itself into it when it detects that it is running inside a container (#14884).
- Fixed an incorrect release note about regexp.
- A new MacOS installer (via pkginstaller) is now supported.
You can’t perform that action at this time.
from Hacker News https://ift.tt/azmDP9Y
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.