docker compose logs certbot
certbot | usage:
certbot | certbot [SUBCOMMAND] [options] [-d DOMAIN] [-d DOMAIN] ...
certbot |
certbot | Certbot can obtain and install HTTPS/TLS/SSL certificates. By default,
certbot | it will attempt to use a webserver both for obtaining and installing the
certbot | certificate.
certbot | certbot: error: argument -m/--email: expected one argument
Well, now you have just abstracted to asking about o/s shell behavior That's not really what we specialize in here.
As for Certbot, that value is described in their docs. Note if you provide multiple email addresses do not use spaces around the comma or quote the entire string the same as any other command lines values with imbedded blanks.
-m EMAIL, --email EMAIL
Email used for registration and recovery contact. Use comma to register multiple emails,
ex: u1@example.com,u2@example.com (default: Ask).
If the environment variable EMAIL is set, the ${EMAIL} you are using should work on the command line. But that's more a bash thing than a Certbot thing. Certbot simply expects an email address. (Or multiple as mentioned above.)