You can try my tutorial here - Nextcloud AIO v10.1.1 - Apache Will Not Start - #19 by vawaver
There is the part:
When Containers Don’t Start Properly:
If a container fails to start or is marked as “unhealthy” (e.g., the “apache” container), I’ve found that the installation image for that specific container might not have been downloaded correctly. In such cases, I follow these steps:
- Stop all containers as usual.
- Delete all stopped containers in Portainer, including the problematic one.
- Additionally, delete the installation image (in Portainer) for the Docker container that failed to start or was marked as unhealthy.
- Let the system redownload the image and recreate the container.This ensures that any potentially corrupted or incomplete image is replaced, and it has resolved issues for me multiple times.