Docker

docker ps
docker exec -it 8fe87c26d534 /bin/bash

Docker Composer

docker-compose ps
docker-compose run app /bin/bash

Kubernetes

kubectl get pods -n mynamespace
kubectl exec -it rails-deployment-deadbeef0-abbaz -n mynamespace -- /bin/bash