Unable to create temp file in `/tmp` for email attachments

Please don’t create multiple threads - it makes it more difficult to help:
Alerts not firing even after the confirmation mail

What does this do, doesn’t seem to be used anywhere? -v ~/metabase-image:/app/plugins2

It’s probably because you’re messing with /tmp linked to a volume.
I would probably do something like this instead:

sudo docker run -d -p 3000:3000 -p 443:3001 -u $(id -u ${USER}):$(id -g ${USER})
-v ~/metabase:/app
-e MB_DB_FILE="/app/data/metabase.db"
-e MB_JETTY_SSL_Port=“3001”
-e MB_JETTY_SSL=“true”
-e MB_JETTY_SSL_Keystore="/app/ssl/keystore.jks"
-e MB_JETTY_SSL_Keystore_Password=“password”
--name metabase-0-32-1 metabase32