BlogHow to Run Temporary Podman Images with Immediate Clean UpPodman is an open soirce tool for container management that runs in deamonless mode. Podman is Linux native and allows you to find, run, build, share and deploy containerized applications. Podman uses stndard OCI (Open Containers Initiative) containers and images. Podman is the better alternative of Docker as it allows you to run the containers in rootless mode, thus completely eliminating a bunch of security problems. While developing an image working with Dockerfiles can be quite time consuming. You first have to create an image, then you have to spin a container out of it so that you can oreview it. This cycle proceeds over and over until all the bugs are polished and all works as expected. Beside the time, it can also be resource consiming and you would have to remember to clean up after you finish.
Now if you open another terminal you can see your container running
After you finsh with your container preview, just click CTRL-C and the containers will be cleaned up immediately. No hanging leftover containers or images taking precious harddrive space, that can easily go into gigabytes wasted. |
||||||||||||||