Skip to content

Conversation

beelzetron
Copy link

@beelzetron beelzetron commented Apr 27, 2023

When running the pattern.sh script multiple times, a lot of podman exited containers will be left on the machine:

CONTAINER ID  IMAGE                                                                                           COMMAND               CREATED       STATUS                    PORTS                                                                   NAMES
726758c9a50a  quay.io/hybridcloudpatterns/utility-container:latest                                            /usr/local/bin/de...  47 hours ago  Exited (0) 47 hours ago                                                                           nostalgic_dubinsky
5adc09db3f70  quay.io/hybridcloudpatterns/utility-container:latest                                            make help             46 hours ago  Exited (0) 46 hours ago                                                                           crazy_sammet
44e32c77c7d3  quay.io/hybridcloudpatterns/utility-container:latest                                            make uninstall        46 hours ago  Exited (2) 46 hours ago                                                                           goofy_khayyam
3d4707e4faa1  quay.io/hybridcloudpatterns/utility-container:latest                                            make uninstall        46 hours ago  Exited (2) 46 hours ago                                                                           serene_jepsen
920ae413b396  quay.io/hybridcloudpatterns/utility-container:latest                                            make help             46 hours ago  Exited (0) 46 hours ago                                                                           priceless_mccarthy
458fbe603325  quay.io/hybridcloudpatterns/utility-container:latest                                            make show             46 hours ago  Exited (0) 46 hours ago                                                                           romantic_heisenberg
3f99e42f785b  quay.io/hybridcloudpatterns/utility-container:latest                                            /usr/local/bin/de...  45 hours ago  Exited (0) 45 hours ago                                                                           inspiring_heisenberg
4290c74f185b  quay.io/hybridcloudpatterns/utility-container:latest                                            make help             45 hours ago  Exited (0) 45 hours ago                                                                           musing_sammet
f7e76056ef61  quay.io/hybridcloudpatterns/utility-container:latest                                            make test             45 hours ago  Exited (0) 45 hours ago                                                                           musing_mendeleev
1cf6609704dd  quay.io/hybridcloudpatterns/utility-container:latest                                            make test             27 hours ago  Exited (0) 27 hours ago                                                                           xenodochial_kapitsa
3630762e20c1  quay.io/hybridcloudpatterns/utility-container:latest                                            make load-secrets     27 hours ago  Exited (0) 27 hours ago                                                                           relaxed_liskov
a3ac4fce5568  quay.io/hybridcloudpatterns/utility-container:latest                                            make load-secrets     27 hours ago  Exited (0) 27 hours ago                                                                           clever_turing
3367ec379a5c  quay.io/hybridcloudpatterns/utility-container:latest                                            make load-secrets     25 hours ago  Exited (0) 25 hours ago                                                                           ecstatic_heisenberg
824a85fb9970  quay.io/hybridcloudpatterns/utility-container:latest                                            make load-secrets     25 hours ago  Exited (0) 25 hours ago                                                                           mystifying_saha
b723e2b0f02b  quay.io/hybridcloudpatterns/utility-container:latest                                            make load-secrets     25 hours ago  Exited (0) 25 hours ago                                                                           dreamy_franklin
e491c07e8529  quay.io/hybridcloudpatterns/utility-container:latest                                            make load-secrets     25 hours ago  Exited (0) 25 hours ago                                                                           jovial_hermann
1490e8aeb063  quay.io/hybridcloudpatterns/utility-container:latest                                            make load-secrets     25 hours ago  Exited (0) 25 hours ago                                                                           wonderful_edison
992f72bafacf  quay.io/hybridcloudpatterns/utility-container:latest                                            /usr/local/bin/de...  20 hours ago  Exited (0) 20 hours ago                                                                           loving_franklin
2d0ebbb3f9a5  quay.io/hybridcloudpatterns/utility-container:latest                                            make help             20 hours ago  Exited (0) 20 hours ago                                                                           stoic_herschel
f037c854fc1d  quay.io/hybridcloudpatterns/utility-container:latest                                            helm version          20 hours ago  Exited (0) 20 hours ago                                                                           bold_dhawan

Adding --rm parameter to podman run makes podman automatically delete the exited containers leaving the machine cleaner.

When running the `pattern.sh` script multiple times, a lot of
podman exited containers will be left on the machine, adding
`--rm` parameter to `podman run` makes podman automatically
delete the exited containers leaving the machine cleaner.
@mbaldessari
Copy link
Contributor

Thanks @beelzetron !

@mbaldessari mbaldessari merged commit cc44bff into validatedpatterns:main Apr 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants