4. What is the difference between docker exec and attach? by Bharath Srinivas
Limited Time Offer!
For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!
when we use Docker attach it will takes to PID 1 and it will wait for input and when we exit the terminal the container is no longer up. When you use docker exec and if you exit the container is still running.
Both are used to check the running container if you want to do without exiting the running container useĀ docker exec