what is the difference between docker exec and docker 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
The docker exec command runs a new command in a running container.
docker attach
The docker attach command to attach your terminal’s standard input, output, and error (or any combination of the three) to a running container using the container’s ID or name.