Containers

How to attach your shell to a terminal of a running container?

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

podman container exec -it [container id/name] bash

This can be done in advance while running the container: podman container run -it [image:tag] /bin/bash