What is the differenet between docker exec and attach?

-> Attach:This command to attach your terminal’s standard input, output, and error to a running container using the container’s ID or name.
-> exec: The docker exec command runs a new command in a running container. execute the below command after restarting the container node API

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