• nucleative@lemmy.world
    link
    fedilink
    English
    arrow-up
    16
    ·
    edit-2
    13 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 😂

    • shym3q@programming.dev
      link
      fedilink
      English
      arrow-up
      8
      ·
      12 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

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

        You’re right. I got in the habit of doing that because I’m endlessly tweaking my .env files and I don’t think those reload unless you shut down first

    • irmadlad@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      9 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!