For the vast majority of docker images, the documentation only mention a super long and hard to understand “docker run” one liner.
Why nobody is placing an example docker-compose.yml in their documentation? It’s so tidy and easy to understand, also much easier to run in the future, just set and forget.
If every image had an yml to just copy, I could get it running in a few seconds, instead I have to decode the line to become an yml
I want to know if it’s just me that I’m out of touch and should use “docker run” or it’s just that an “one liner” looks much tidier in the docs. Like to say “hey just copy and paste this line to run the container. You don’t understand what it does? Who cares”
The worst are the ones that are piping directly from curl to “sudo bash”…
Ive almost completely moved to podman managed by systemd and I highly recommend it.
Do you use podman run followed by podman generate or are you using quadlet?
Quadlet is integrated in podman 4.4 and up and makes it possible to declare your containers in .container files that look like systems unit files and still get the full systems integration: https://www.redhat.com/sysadmin/multi-container-application-podman-quadlet
I just generate them. Never heard of quadlet I’m gonna check it out, thanks.
I do this out of habit because this is how my work does it, but I honestly don’t know the benefits of doing it this way. Can you explain (or provide a link?)
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/building_running_and_managing_containers/assembly_porting-containers-to-systemd-using-podman_building-running-and-managing-containers
Ive found it to just be easier to manage rootless containers this way.
I’ve never tried Podman myself, but managing the containers using systemd would mean that you use exactly the same commands to start a Docker container as you would use to start a regular service. The fact that it’s running in a container essentially just becomes an implementation detail, and you don’t have to remember what’s running in containers vs what’s not running in containers.