Docker Exec & Docker Attach

Опубликовано: 05 Июль 2020
на канале: Infinite Linux
9,138
155

Hey Guys

Welcome back to the channel and this video I am going to show you the following things


How to exec into the container
Difference between attach and exec

So we use exec when we want to run another process inside a container
The docker best practice says that you should run just one process inside a container and treat your containers as cattle and not pets

With exec, you can run another process in your container

Docker attach lets you attach your host's standard in, stdout, and stderr with that of the container.

So the difference between docker exec and docker attach can be understood as docker exec creates a new process inside the container while docker attach just attaches to the existing process


Смотрите видео Docker Exec & Docker Attach онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Infinite Linux 05 Июль 2020, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 9,138 раз и оно понравилось 155 людям.