[DiscordArchive] i actually have no idea, I've always leaned towards kubernetes over docker swarm. How would you upda
[DiscordArchive] i actually have no idea, I've always leaned towards kubernetes over docker swarm. How would you upda
Archived author: mynameismeat • Posted: 2024-06-03T12:18:19.781000+00:00
Original source
i actually have no idea, I've always leaned towards kubernetes over docker swarm. How would you update it normally?
Archived author: Dakeiz • Posted: 2024-06-03T12:22:33.226000+00:00
Original source
I would change the image tag to the new version and run `docker stack deploy` with the same Compose file and stack name
Archived author: mynameismeat • Posted: 2024-06-03T12:57:12.965000+00:00
Original source
I see. What you can do is set the `DOCKER_IMAGE_TAG` env var. it doesn't need to be something meaningful, just unique. Something like this should suffice
```sh
export DOCKER_IMAGE_TAG="$(date +%s)"
git pull
docker compose build
docker stack deploy
```
Archived author: Dakeiz • Posted: 2024-06-03T12:59:09.414000+00:00
Original source
Hmm but I don't think I should use `docker compose build`