{"id":3441,"date":"2025-02-07T11:49:11","date_gmt":"2025-02-07T16:49:11","guid":{"rendered":"https:\/\/increasec.com\/?p=3441"},"modified":"2025-08-29T18:43:02","modified_gmt":"2025-08-29T22:43:02","slug":"portainer-updating-vms","status":"publish","type":"post","link":"https:\/\/increasec.com\/?p=3441","title":{"rendered":"Portainer updating VMs"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Super easy, once you know<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Login to portainer, Live mgt<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Containers, notice a column for created date. I try to update any docker image that is over 3mo<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"392\" src=\"https:\/\/increasec.com\/wp-content\/uploads\/2025\/02\/image-1024x392.png\" alt=\"\" class=\"wp-image-3442\" srcset=\"https:\/\/increasec.com\/wp-content\/uploads\/2025\/02\/image-1024x392.png 1024w, https:\/\/increasec.com\/wp-content\/uploads\/2025\/02\/image-300x115.png 300w, https:\/\/increasec.com\/wp-content\/uploads\/2025\/02\/image-768x294.png 768w, https:\/\/increasec.com\/wp-content\/uploads\/2025\/02\/image.png 1266w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">click on the container <strong>name<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">scroll down to <strong>Volumes <\/strong>and verify that the container is storing all it&#8217;s configuration and data on the host.  This confirms that we won&#8217;t be loosing any information when we replace the application.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"924\" height=\"412\" src=\"https:\/\/increasec.com\/wp-content\/uploads\/2025\/02\/image-1.png\" alt=\"\" class=\"wp-image-3443\" srcset=\"https:\/\/increasec.com\/wp-content\/uploads\/2025\/02\/image-1.png 924w, https:\/\/increasec.com\/wp-content\/uploads\/2025\/02\/image-1-300x134.png 300w, https:\/\/increasec.com\/wp-content\/uploads\/2025\/02\/image-1-768x342.png 768w\" sizes=\"auto, (max-width: 924px) 100vw, 924px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">scroll back to the top and click <strong>Recreate<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"940\" height=\"422\" src=\"https:\/\/increasec.com\/wp-content\/uploads\/2025\/02\/image-2.png\" alt=\"\" class=\"wp-image-3444\" srcset=\"https:\/\/increasec.com\/wp-content\/uploads\/2025\/02\/image-2.png 940w, https:\/\/increasec.com\/wp-content\/uploads\/2025\/02\/image-2-300x135.png 300w, https:\/\/increasec.com\/wp-content\/uploads\/2025\/02\/image-2-768x345.png 768w\" sizes=\"auto, (max-width: 940px) 100vw, 940px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">you will get a warning message, click the slider to <strong>Re-pull image<\/strong>, don&#8217;t chicken out now, Click <strong>Recreate<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"455\" height=\"284\" src=\"https:\/\/increasec.com\/wp-content\/uploads\/2025\/02\/image-3.png\" alt=\"\" class=\"wp-image-3445\" srcset=\"https:\/\/increasec.com\/wp-content\/uploads\/2025\/02\/image-3.png 455w, https:\/\/increasec.com\/wp-content\/uploads\/2025\/02\/image-3-300x187.png 300w\" sizes=\"auto, (max-width: 455px) 100vw, 455px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">It may look like nothing is happening, look in the top right of the window for a swirly-bob<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"119\" height=\"54\" src=\"https:\/\/increasec.com\/wp-content\/uploads\/2025\/02\/image-4.png\" alt=\"\" class=\"wp-image-3446\" style=\"width:126px;height:auto\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Soon you will notice that the created date changes to today<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"968\" height=\"150\" src=\"https:\/\/increasec.com\/wp-content\/uploads\/2025\/02\/image-5.png\" alt=\"\" class=\"wp-image-3447\" srcset=\"https:\/\/increasec.com\/wp-content\/uploads\/2025\/02\/image-5.png 968w, https:\/\/increasec.com\/wp-content\/uploads\/2025\/02\/image-5-300x46.png 300w, https:\/\/increasec.com\/wp-content\/uploads\/2025\/02\/image-5-768x119.png 768w\" sizes=\"auto, (max-width: 968px) 100vw, 968px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">test your app.  you will need to login again.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Update containers from the command line<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">cd to directory with docker-compose.yml then run the following commands<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">docker compose pull<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">docker compose down<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">docker compose build<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">docker compose up -d<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Super easy, once you know Login to portainer, Live mgt Containers, notice a column for created date. I try to update any docker image that is over 3mo click on&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[186,217],"class_list":["post-3441","post","type-post","status-publish","format-standard","hentry","category-uncategorised","tag-docker","tag-portainer"],"_links":{"self":[{"href":"https:\/\/increasec.com\/index.php?rest_route=\/wp\/v2\/posts\/3441","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/increasec.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/increasec.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/increasec.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/increasec.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3441"}],"version-history":[{"count":3,"href":"https:\/\/increasec.com\/index.php?rest_route=\/wp\/v2\/posts\/3441\/revisions"}],"predecessor-version":[{"id":3888,"href":"https:\/\/increasec.com\/index.php?rest_route=\/wp\/v2\/posts\/3441\/revisions\/3888"}],"wp:attachment":[{"href":"https:\/\/increasec.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3441"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/increasec.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3441"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/increasec.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3441"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}