Odoo Docker Container stopped automatically after starting

After restarting the server, while odoo docker container running, when getting to start odoo
and DB containers.
DB → container is running successfully
Odoo → Container after doing start take a few seconds to stop again.