📦docker exec
Also known as docker exec Command, docker container exec, docker exec -it
Runs one more command in a live box. Often it is a shell.
Think of it like
Think of it like a door into a room. The room is in use, and you walk in.
Example
Why it matters
Definition
Example code
console
$ docker exec -it web sh
/ # cat /etc/hostname
4f1c2a9b7e3d
/ # exit