search

Home  >  Q&A  >  body text

docker 更新镜像容器需要重新run吗

docker 更新镜像容器需要重新run吗

为情所困为情所困2759 days ago667

reply all(1)I'll reply

  • PHP中文网

    PHP中文网2017-04-25 09:03:51

    I don’t know how to phrase your question. .

    If it is docker 更新镜像(后),容器需要重新run吗(?).
    The answer is that you need to restart the creation and startup, because the base environment of the container is obtained from the image when it is created, and it has been running in the new sandbox layer since then, and the image layer below it will always be the same as when it was originally created. Even if the image is updated, the image layer on which the container is based remains unchanged.

    reply
    0
  • Cancelreply