What is the docker exec command used for?

Docker Fundamentals Medium

Docker Fundamentals — Medium

What is the docker exec command used for?

Key points

  • Docker exec is for executing commands inside running containers
  • It does not create new images or start new containers
  • Useful for troubleshooting or managing containers

Ready to go further?

Related questions