podman commit --include-volumes does only work with value true documentation needs to reflect that
#15.387 geöffnet am 19. Aug. 2022
Repository-Metriken
- Stars
- (31.686 Stars)
- PR-Merge-Metriken
- (Keine gemergten PRs in 30 T)
Beschreibung
/kind bug
Description documentation at https://docs.podman.io/en/latest/markdown/podman-commit.1.html reads:
--include-volumes
Include in the committed image any volumes added to the container by the --volume or --mount OPTIONS to the podman create and podman run commands. The default is false.
Steps to reproduce the issue:
-
podman commit --include-volumes [options] container [image]
-
podman run --name [name] [options] [image]
-
podman exec -it [options] [container] /bin/ls path-to-volume
-
is not altered
Describe the results you received:
using the option does not include the altered volumes
Describe the results you expected:
does include altered volumes, or throws error because of value not specified
OR at least:
documentation should read
--include-volumes=bool (true/false)
Include in the committed image any volumes added to the container by the --volume or --mount OPTIONS to the podman create and podman run commands. The default is false.
like documentation at https://docs.podman.io/en/latest/markdown/podman-run.1.html
--cgroupns=mode
Set the cgroup namespace mode for the container.
host: use the host’s cgroup namespace inside the container. container:id: join the namespace of the specified container. private: create a new cgroup namespace. ns:path: join the namespace at the specified path. If the host uses cgroups v1, the default is set to host. On cgroups v2, the default is private.