What is the difference between docker exec and attach?
Limited Time Offer!
For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!
Docker exec: it is basically use to run a command in a running container
docker exec [OPTIONS] CONTAINER COMMAND [ARG…]
Docker attach: Attach local standard input, output, and error streams to a running container
docker attach [OPTIONS] CONTAINER