I'm looking to get separate certificates for each domain using the certbot/certbot docker container. I understand to do that outside docker you'd run certbot once per domain. Inside a container I see --cert-name is a method of to achieve this (at least based on old docs) however I'm failing to get it to work.
Hi @raccettura and welcome to the LE community forum
If you force a cert-name then the resulting cert will replace the previous one with that same name.
If you don't want one cert with many names on it, you will have to use multiple cert names (or let certbot name the certs for you).
If you are trying to obtain multiple certs with one call of certbot, that is not necessary.
You can call certbot as many times as you need new certs.
The only reason I'm not running the certonly command multiple times is because the certbot docker container seems designed to only take a single command. I'd like to avoid running 20 containers for 20 domains.