What is diff docker between exec and docker attach?
What is diff docker between exec and docker attach?
docker exec: - docker exec lets you run a new command inside a running container. Basically you can run any command inside running container with a freedom of doing any other stuffs with other containers.
**docker attach:- ** docker attach connects you to the main process of the container. basically this command would take you to inside the container to perform any command inside the container.