Como funciona a atualização do launcher em uma configuração multicontêiner?

Olá, uma longa pilha de texto à frente, por favor, tenha paciência comigo, estou apenas curioso.

Usuário de contêiner duplo aqui: data e web_only.

Para atualizar, faço SSH no meu servidor e, em seguida, imaginei que escreveria:

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

O problema ao fazer isso é que, após o start, ainda tenho a versão anterior em execução, não a atualizada.
Por que isso está acontecendo?

Para que ele seja atualizado, na verdade preciso executar:

sh /var/discourse/launcher bootstrap web_only
sh /var/discourse/launcher stop web_only
sh /var/discourse/launcher destroy web_only     // também isso
sh /var/discourse/launcher start web_only

Minha segunda pergunta é: por que o destroy não exclui também minha imagem recém-bootstrapada?

Outra observação interessante: notei que, durante o bootstrap, vários contêineres diferentes são criados e excluídos.

Você poderia explicar um pouco (mais um pouco?) como o launcher funciona e quais truques ele executa?

Obrigado antecipadamente.

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 curtidas

*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 curtida

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 curtida

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