Exec
docker exec -it fastapi_api bash
- Enters
docker
interactive mode (-it
) on image namedfastapi_api
and runs the commandbash
for the interactive session bash
overrides the defaul command of the docker file with is usually theCMD
to start the image