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.