Docker Compose Up Is Faster than Stop + Up for Restarting Containers

preview_player
Показать описание
Up by itself is smart enough to only recreate containers if an image or an env variable changes.

Hit the subscribe button to receive more videos like this!

REFERENCE LINKS
---------------------------------------------------

COURSES
---------------------------------------------------
Courses I've created that focus on web dev and deployment topics.

THE TOOLS I USE / GEAR
---------------------------------------------------

FOLLOW ME ELSEWHERE
---------------------------------------------------

TIMESTAMPS
---------------------------------------------------
0:00 -- Intro
0:22 -- We'll be looking at an open source Flask app running in Docker
0:44 -- Timing how long it takes to up the project and make a change with up again
1:59 -- It's a lot faster than doing a docker-compose stop and up or down and up
3:41 -- Using the docker events command to confirm up is doing a friendly SIGTERM
Рекомендации по теме
Комментарии
Автор

Awesome videos man, I was wondering how much you know about docker swarm? I trying to figure out if it's possible to only restart one container at a time keeping the app live all the time until the other containers are restarted so there is no downtime. Is this possible with docker?

redactdigital
Автор

What zsh plugin are you using to show the history completion as you type ?

GeorgeKowalski
Автор

I have a problem i have to stop and again run the docker compose command to see the changes can you help ??

sujalshah