¿Cómo funciona la actualización del launcher en una configuración multicontenedor?

Hola, larga lista de texto por delante, por favor ten paciencia, solo tengo curiosidad.

Soy usuario de contenedores duales: data y web_only.

Para actualizar, me conecto por SSH a mi servidor, y luego imaginé que escribiría:

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

El problema al hacer esto es que después de iniciar, todavía tengo la versión anterior en ejecución, no la actualizada.
¿Por qué está sucediendo esto?

Para que se actualice, en realidad tengo que ejecutar:

sh /var/discourse/launcher bootstrap web_only
sh /var/discourse/launcher stop web_only
sh /var/discourse/launcher destroy web_only     // también esto
sh /var/discourse/launcher start web_only

Mi segunda pregunta es: ¿por qué destroy no elimina también mi imagen recién inicializada?

Otra nota interesante: he observado que durante el proceso de bootstrap, se crean y eliminan múltiples contenedores diferentes.

¿Podrías explicar un poco (¿un poco más?) cómo funciona launcher y qué trucos realiza?

Gracias de antemano.

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 Me gusta

*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 me gusta

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 me gusta

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