mirror of
https://github.com/containers/podman.git
synced 2025-08-03 01:37:51 +08:00
Add --volumes-from flag to podman run and create
podman now supports --volumes-from flag, which allows users to add all the volumes an existing container has to a new one. Signed-off-by: umohnani8 <umohnani@redhat.com> Closes: #931 Approved by: mheon
This commit is contained in:
@ -313,6 +313,9 @@ type ContainerConfig struct {
|
||||
// ExitCommand is the container's exit command.
|
||||
// This Command will be executed when the container exits
|
||||
ExitCommand []string `json:"exitCommand,omitempty"`
|
||||
// LocalVolumes are the built-in volumes we get from the --volumes-from flag
|
||||
// It picks up the built-in volumes of the container used by --volumes-from
|
||||
LocalVolumes []string
|
||||
}
|
||||
|
||||
// ContainerStatus returns a string representation for users
|
||||
|
Reference in New Issue
Block a user