I created new app via docker compose and I want to update it.
Now I need to “recreate” it and the app will be delete and recreate.
Why isn’t there an option to update the app as you do in docker with the --build flag? That way, the app will be created faster and only the updated components will be recreated.
1.) When specifying the docker repository item, be sure to use the tag so that you have the correct version you want. For example, here’s my compose file for SmokePing. See how I have “smokeping:latest” indicated. Now if there’s a new version, it should pull that if the person maintaining the repository has the tags done right.
2.) Sometimes, even with the tag correct, QNAP seems to not always pull it. That’s because it already has a copy of what it thinks is “smoking:latest.” You need to go to Images in ContainerStation and delete the image that it has stored. In my screenshot below, it has an image named “smokeping:latest” so it may not pull what is actually the latest build from the repository. Delete that and then you should be good to go when you rebuild.
also if you want the recreate to always update the image, then you can add the below line to your compose file. It tell Container station to always download the image.
pull_policy: always
just remember to prune your images from time to time to get rid of old stuff.
before figuring this out, i had to download the new image, then recreate etc.. this makes it an automated process.
i also run WUD with is a docker image watching container. so between that and the recreate working with pull always it super easy to maintain my containers on container station