Can’t enter the docker container

Hello
I wanted to enter the docker container created by “docker-compose up” command but failed.
I have tried many commands such as "docker exec -it " and “docker attach”.


So how to enter an already started container?
Best regards

Hello and welcome,
not every image/container includes the bash-command. Often only ash is available - so you may try this instead of bash.

Thank you!
I have successfully entered the container.