sh /var/discourse/launcher bootstrap web_only
sh /var/discourse/launcher stop web_only
sh /var/discourse/launcher start web_only
但这样做的问题是,在启动后,仍然运行的是旧版本,而不是更新后的版本。为什么会这样?
实际上,为了完成更新,我必须运行:
sh /var/discourse/launcher bootstrap web_only
sh /var/discourse/launcher stop web_only
sh /var/discourse/launcher destroy web_only // 这一步也是必须的
sh /var/discourse/launcher start web_only
*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?