How do you get a shell in a running container?

BeginnerConceptDocker
Answer
docker exec -it api sh     # or bash, if the image has it
All Real-World Interview questions Roadmap: Interview readiness

More on Docker