mirror of
https://github.com/containers/podman.git
synced 2025-08-06 19:44:14 +08:00
This PR allows users to remove external containers directly
Currenly if a user specifies the name or ID of an external storage container, we report an error to them. buildah from scratch working-container-2 podman rm working-container-2 Error: no container with name or ID working-container-2 found: no such container Since the user specified the correct name and the container is in storage we force them to specify --storage to remove it. This is a bad experience for the user. This change will just remove the container from storage. If the container is known by libpod, it will remove the container from libpod as well. The podman rm --storage option has been deprecated, and removed from docs. Also cleaned documented options that are not available to podman-remote. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
@ -43,13 +43,6 @@ to run containers such as CRI-O, the last started container could be from either
|
||||
|
||||
The latest option is not supported on the remote client.
|
||||
|
||||
**--storage**
|
||||
|
||||
Remove external containers from the storage library.
|
||||
This is only possible with containers that are not present in libpod can be seen by **podman ps --all --storage**).
|
||||
It is used to remove external containers from **podman build** and **buildah**, and orphan containers which were only partially removed by **podman rm**.
|
||||
The storage option conflicts with the **--all**, **--latest**, and **--volumes** options.
|
||||
|
||||
**--volumes**, **-v**
|
||||
|
||||
Remove anonymous volumes associated with the container. This does not include named volumes
|
||||
@ -96,7 +89,7 @@ $ podman rm -f --latest
|
||||
**125** The command fails for any other reason
|
||||
|
||||
## SEE ALSO
|
||||
podman(1), podman-image-rm(1), podman-ps(1), podman-build(1)
|
||||
podman(1), podman-image-rm(1), podman-ps(1), podman-build(1), buildah(1), cri-o(1)
|
||||
|
||||
## HISTORY
|
||||
August 2017, Originally compiled by Ryan Cole <rycole@redhat.com>
|
||||
|
Reference in New Issue
Block a user