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!

Enroll Now

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.

Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x