...

/

Connecting to a Container

Connecting to a Container

Learn how to execute commands in running Docker containers using the docker exec command.

Execute commands in running containers

The docker exec command is used to execute commands in running containers, and it has two modes:

  • Interactive
  • Remote execution

Interactive sessions connect your terminal to a shell process in the container and behave like remote SSH ...