mirror of
https://github.com/containers/podman.git
synced 2025-06-25 03:52:15 +08:00
Merge pull request #7222 from baude/issue7128
correct go-binding key for volumes
This commit is contained in:
@ -98,7 +98,7 @@ func Remove(ctx context.Context, nameOrID string, force, volumes *bool) error {
|
|||||||
params.Set("force", strconv.FormatBool(*force))
|
params.Set("force", strconv.FormatBool(*force))
|
||||||
}
|
}
|
||||||
if volumes != nil {
|
if volumes != nil {
|
||||||
params.Set("vols", strconv.FormatBool(*volumes))
|
params.Set("v", strconv.FormatBool(*volumes))
|
||||||
}
|
}
|
||||||
response, err := conn.DoRequest(nil, http.MethodDelete, "/containers/%s", params, nil, nameOrID)
|
response, err := conn.DoRequest(nil, http.MethodDelete, "/containers/%s", params, nil, nameOrID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -142,8 +142,6 @@ EOF
|
|||||||
|
|
||||||
# Anonymous temporary volumes, and persistent autocreated named ones
|
# Anonymous temporary volumes, and persistent autocreated named ones
|
||||||
@test "podman volume, implicit creation with run" {
|
@test "podman volume, implicit creation with run" {
|
||||||
skip_if_remote "FIXME: pending #7128"
|
|
||||||
|
|
||||||
# No hostdir arg: create anonymous container with random name
|
# No hostdir arg: create anonymous container with random name
|
||||||
rand=$(random_string)
|
rand=$(random_string)
|
||||||
run_podman run -v /myvol $IMAGE sh -c "echo $rand >/myvol/myfile"
|
run_podman run -v /myvol $IMAGE sh -c "echo $rand >/myvol/myfile"
|
||||||
|
Reference in New Issue
Block a user