podman exec -it web sh

Category: Kubernetes & Containers

podman exec -it web sh

Open a shell in a running container

Runs sh inside the running web container, giving you a shell for inspecting processes, files, and network state. The container must be running, so start it first with podman start web. Changes inside are lost when the container is removed.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.