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?
You’re trying to call
/bin/bash explicitly, which frequently won’t exist in a lightweight container. Try just