Shell in Docker container
Open an interactive shell in a docker container, e.g. for debugging purposes.
Replace {container_name_or_id}
with the container name or id (docker ps
).
$ docker exec -ti {container_name_or_id} /bin/sh
Open an interactive shell in a docker container, e.g. for debugging purposes.
Replace {container_name_or_id}
with the container name or id (docker ps
).
$ docker exec -ti {container_name_or_id} /bin/sh