The difference of Dockerfile / docker-compose after changing docker entrypoint to bash

the image entrypoint built by Dockerfile is set to bash, and the created container will exit after running. I understand that there is no foreground work process, so the container exits.

what puzzles me is that after switching to docker-compose choreography, the container created after setting entrypoint to bash in the docker-compose.yaml file will not exit? I can log in to the container through docker exec-it container_name bash and ask for tips.

Apr.28,2022
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b41020-2c571.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b41020-2c571.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?