mirror of
https://github.com/containers/podman.git
synced 2025-12-01 02:27:13 +08:00
Fix aliased commands to actually work
The current aliased commands podman container list and podman image list podman image rm Do not work properly. The global storage options are broken. This patch fixes this issue. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
@@ -88,17 +88,6 @@ var _ = Describe("Podman rm", func() {
|
||||
Expect(len(images.OutputToStringArray())).To(Equal(0))
|
||||
})
|
||||
|
||||
It("podman container image prune unused images", func() {
|
||||
prune := podmanTest.Podman([]string{"container", "image", "prune", "-a"})
|
||||
prune.WaitWithDefaultTimeout()
|
||||
Expect(prune.ExitCode()).To(Equal(0))
|
||||
|
||||
images := podmanTest.Podman([]string{"image", "list", "-a"})
|
||||
images.WaitWithDefaultTimeout()
|
||||
// all images are unused, so they all should be deleted!
|
||||
Expect(len(images.OutputToStringArray())).To(Equal(0))
|
||||
})
|
||||
|
||||
It("podman system image prune unused images", func() {
|
||||
SkipIfRemote()
|
||||
podmanTest.BuildImage(pruneImage, "alpine_bash:latest", "true")
|
||||
|
||||
@@ -70,7 +70,7 @@ var _ = Describe("Podman run", func() {
|
||||
|
||||
It("podman container run a container based on on a short name with localhost", func() {
|
||||
podmanTest.RestoreArtifact(nginx)
|
||||
tag := podmanTest.Podman([]string{"container", "tag", nginx, "localhost/libpod/alpine_nginx:latest"})
|
||||
tag := podmanTest.Podman([]string{"image", "tag", nginx, "localhost/libpod/alpine_nginx:latest"})
|
||||
tag.WaitWithDefaultTimeout()
|
||||
|
||||
rmi := podmanTest.Podman([]string{"image", "rm", nginx})
|
||||
|
||||
Reference in New Issue
Block a user