Wie funktioniert das Launcher-Update in einer Multicontainer-Umgebung?

Hallo, es steht eine lange Textmenge an, bitte hab etwas Geduld, ich bin nur neugierig.

Ich bin ein Nutzer mit zwei Containern: data und web_only.

Um ein Update durchzuführen, verbinde ich mich per SSH mit meinem Server. Dann habe ich mir gedacht, ich würde Folgendes eingeben:

sh /var/discourse/launcher bootstrap web_only
sh /var/discourse/launcher stop web_only
sh /var/discourse/launcher start web_only

Das Problem dabei ist, dass nach dem Start immer noch die vorherige Version läuft und nicht die aktualisierte.
Warum passiert das?

Um ein Update zu erzwingen, muss ich tatsächlich Folgendes ausführen:

sh /var/discourse/launcher bootstrap web_only
sh /var/discourse/launcher stop web_only
sh /var/discourse/launcher destroy web_only     // auch das hier
sh /var/discourse/launcher start web_only

Meine zweite Frage: Warum löscht „destroy" nicht auch das neu gebootete Image?

Eine weitere interessante Beobachtung: Während des Bootstrap-Vorgangs werden mehrere verschiedene Container erstellt und wieder gelöscht.

Könntet ihr bitte etwas genauer erklären, wie „launcher" funktioniert und welche Tricks er anwendet?

Vielen Dank im Voraus.

Because “stop” just stops the current running container. You need to also remove it so you launch the new container you built.

“destroy” will destroy containers, not images. In docker speak this is the difference between rm and rmi

Bootstrap creates an “image”

Start will use the “image” to create a “container”

4 „Gefällt mir“

*only if a container doesn’t exist. If the container exists, then it will use the same one (even though it is not from the latest image). ← Is that correct?

yes, that is correct. If the container exists already it will not create a new one.

1 „Gefällt mir“

Thanks for all the answers.

Do you think this post could be material for a howto post?

I think the knowledge should probably integrated into an existing howto about multi container setup.

1 „Gefällt mir“

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.