Skip to content

Commit 8fff30f

Browse files
hubbleviewkilfoyle
andauthored
Add an important note about image removal command for Podman vs Docker (#3038)
Added note about Podman image removal behavior compared to Docker. When using Podman, removing an image with the `--force` (`-f`) option not only deletes the image reference but also removes any containers that depend on that image. This behavior differs from Docker, where forced image removal does not automatically remove running or stopped containers. Therefore, avoid using the `--force` (`-f`) option with the `docker rmi` command. Co-authored-by: David Kilfoyle <[email protected]>
1 parent a368c62 commit 8fff30f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

deploy-manage/deploy/cloud-enterprise/migrate-ece-to-podman-hosts.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -521,3 +521,7 @@ Using Docker or Podman as container runtime is a configuration local to the host
521521
5. Remove the Docker allocator by following the [Delete Hosts](../../maintenance/ece/delete-ece-hosts.md) guidelines.
522522
523523
As an alternative, use the [Delete Runner](https://www.elastic.co/docs/api/doc/cloud-enterprise/operation/operation-delete-runner) API.
524+
525+
::::{note}
526+
When using Podman, removing an image with the `--force` (`-f`) option not only deletes the image reference but also removes any containers that depend on that image. This behavior differs from Docker, where forced image removal does not automatically remove running or stopped containers. Therefore, avoid using the `--force` (`-f`) option with the `docker rmi` command.
527+
::::

0 commit comments

Comments
 (0)