Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QUESTION] How to update using docker-compose? #294

Closed
mfnalex opened this issue Oct 23, 2021 · 8 comments
Closed

[QUESTION] How to update using docker-compose? #294

mfnalex opened this issue Oct 23, 2021 · 8 comments
Assignees
Labels
🤷‍♂️ Question [ISSUE] Further information is requested

Comments

@mfnalex
Copy link

mfnalex commented Oct 23, 2021

Hi :)

Thanks for this awesome software! I've been looking for something like this for weeks! Now, to my question :D

How can I update from 1.8.7 to 1.8.8 using docker-compose? I did docker-compose stop and then docker-compose up -d and thought it will now use the newest version, but it doesn't. I'm not really familiar with docker, so any help would be appreciated :)

@mfnalex mfnalex added the 🤷‍♂️ Question [ISSUE] Further information is requested label Oct 23, 2021
@Lissy93
Copy link
Owner

Lissy93 commented Oct 23, 2021

Heya @mfnalex - Thank you for your kind words 😊

So I wrote some docs on how to update Docker containers, which you can find here. I think in your situation, the easiest method is going to be to use WatchTower.

But if you want to do it manually, then just kill of the existing container, and pull down the latest image, then restart the existing container. Maybe something like this:

  • Stop container: docker-compose stop
  • Pull latest image: docker pull lissy93/dashy:latest
  • Remove container: docker rm [container_id]
  • Spin up new container: docker-compose up

I push updates a few times a week, so updating manually might get a bit annoying.
Hope that helps :)

@EVOTk
Copy link
Contributor

EVOTk commented Oct 24, 2021

Hello,
Then think about doing docker image prune to delete the old images from your system.

You can also start Watchtower manually this way so it will see if an update for Dashy is available, if so it will upgrade and then shut down ( --rm argument) :

docker run --rm \
-v /var/run/docker.sock:/var/run/docker.sock \
containrrr/watchtower \
--run-once Dashy

https://containrrr.dev/watchtower/arguments/

@liss-bot liss-bot added the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label Oct 24, 2021
@mfnalex
Copy link
Author

mfnalex commented Oct 24, 2021

Thank you! Somehow I couldn't find the existing docs, sooo thanks again :D

@mfnalex mfnalex closed this as completed Oct 24, 2021
@liss-bot liss-bot added 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending and removed 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending labels Oct 24, 2021
Repository owner deleted a comment from liss-bot Oct 24, 2021
@Lissy93

This comment has been minimized.

@liss-bot liss-bot removed the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label Oct 24, 2021
@mfnalex
Copy link
Author

mfnalex commented Oct 24, 2021

Is it correct that Watchtower also works for Docker compose? Sorry to steal your time, I'm a total docker noob, but to me it looked like Watchtower only works for "regular" docker containers that were pulled from the hub, and not for "composed" containers.

@liss-bot liss-bot added the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label Oct 24, 2021
@EVOTk
Copy link
Contributor

EVOTk commented Oct 24, 2021

Watchtower works for all containers.
By default, it monitors and updates all containers.
We can also ask him to monitor / update the containers we choose (via label)

@Lissy93 Lissy93 removed the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label Oct 24, 2021
@Lissy93 Lissy93 pinned this issue Oct 24, 2021
@Lissy93
Copy link
Owner

Lissy93 commented Oct 24, 2021

Hey @mfnalex - Thank you so much for your sponsorship 💖It's super kind of you :)
Feel free to reach out if you need anything :)

@mfnalex
Copy link
Author

mfnalex commented Oct 25, 2021

Thanks for the answer, I think I got it working now :3

@liss-bot liss-bot added the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label Oct 25, 2021
@Lissy93 Lissy93 removed the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label Oct 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤷‍♂️ Question [ISSUE] Further information is requested
Projects
None yet
Development

No branches or pull requests

5 participants
@mfnalex @Lissy93 @EVOTk @liss-bot and others