What is the difference between docker exec and attach?

Docker exec: it is basically use to run a command in a running container

docker exec [OPTIONS] CONTAINER COMMAND [ARG…]

Docker attach: Attach local standard input, output, and error streams to a running container

docker attach [OPTIONS] CONTAINER

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