• nucleative@lemmy.world
    link
    fedilink
    English
    arrow-up
    14
    ·
    edit-2
    7 hours ago

    Never run:

    docker compose pull
    docker compose down
    docker compose up -d
    

    Right before the end of your day. Ask me how I know 😂

    • irmadlad@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      3 hours ago

      Right before the end of your day

      Oh, gosh, I did this last evening. I didn’t check what time it was, and initiated an update on some 70 containers. I have a cron that shuts down the server in the evening, and sure enough, right in the middle of the updates, it powered off. I didn’t even mess with it and went to bed. Re-initiated the update this morning, and everything is up and running. Whew!

    • shym3q@programming.dev
      link
      fedilink
      English
      arrow-up
      7
      ·
      6 hours ago

      compose up will automatically recreate with newer images if the new one were pulled. so there is no need for compose down btw