I’m running nginx in Docker.
I managed to get Let’s Encrypt certificates via certbot.
sudo certbot certonly --nginx -d my.domain.de
To get the certificates I had to stop the Nginx container, because it uses ports 80 & 443.
After getting the certificates the container didn’t start because a process nginx blocked both ports. After killing these processes, the container started again.
But now the certificate renewal is not working because the Nginx container blocks the ports.
How can I solve this issue?