what is the difference between docker exec and docker attach?

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
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x