mirror of
https://github.com/containers/podman.git
synced 2025-06-20 09:03:43 +08:00
Merge pull request #8632 from mheon/fix_8613
Change name of imageVolumes in container config JSON
This commit is contained in:
@ -135,7 +135,13 @@ type ContainerRootFSConfig struct {
|
||||
// OverlayVolumes lists the overlay volumes to mount into the container.
|
||||
OverlayVolumes []*ContainerOverlayVolume `json:"overlayVolumes,omitempty"`
|
||||
// ImageVolumes lists the image volumes to mount into the container.
|
||||
ImageVolumes []*ContainerImageVolume `json:"imageVolumes,omitempty"`
|
||||
// Please note that this is named ctrImageVolumes in JSON to
|
||||
// distinguish between these and the old `imageVolumes` field in Podman
|
||||
// pre-1.8, which was used in very old Podman versions to determine how
|
||||
// image volumes were handled in Libpod (support for these eventually
|
||||
// moved out of Libpod into pkg/specgen).
|
||||
// Please DO NOT re-use the `imageVolumes` name in container JSON again.
|
||||
ImageVolumes []*ContainerImageVolume `json:"ctrImageVolumes,omitempty"`
|
||||
// CreateWorkingDir indicates that Libpod should create the container's
|
||||
// working directory if it does not exist. Some OCI runtimes do this by
|
||||
// default, but others do not.
|
||||
|
Reference in New Issue
Block a user