selfhosted
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
gerardit04@alien.topB to Self-Hosted MainEnglish · 2 years ago

My docker containers are stopping constantly.

message-square
message-square
11
link
fedilink
3
message-square

My docker containers are stopping constantly.

gerardit04@alien.topB to Self-Hosted MainEnglish · 2 years ago
message-square
11
link
fedilink

I dont see anything in the container logs and I dont know what could it be

​

https://preview.redd.it/s00u07iqea1c1.png?width=1812&format=png&auto=webp&s=296fc0ee6eef5542575b8e37cbe20cd1beb82801

  • p_235615@alien.topB
    link
    fedilink
    English
    arrow-up
    3
    ·
    2 years ago

    Most likely low memory, linux systems when there are out of memory calls the OOM killer, which kills the largest processes running on the system. https://unix.stackexchange.com/questions/153585/how-does-the-oom-killer-decide-which-process-to-kill-first

    You can probably find evidence of this in the system logs, on most modern systems, this should show you higher prio logs from last boot: journalctl -p 4 -b

    You should see something like this, if it was killed by OOM killer

    MESSAGE=Killed process 3029 (Web Content) total-vm:10206696kB, anon-rss:6584572kB, file-rss:0kB, shm em-rss:8732kB

    And you should definitely think about extending the memory of the system or reducing the number of containers/they memory footprint.

    • gerardit04@alien.topOPB
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 years ago

      Journactl doesn’t work in unRAID. I don’t thinks it’s a memory problem usually memory usage is around 10-15GB and I have 40gb of memory

      • lilolalu@alien.topB
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 years ago

        The question is not so much if you have enough physical ram but if your docker management tool has established resource limits for the containers. Oom killer will stop the process regardless of the fact that there is enough free memory if the container goes over its Ressource contraints.

        https://stackoverflow.com/questions/42345235/how-to-specify-memory-cpu-limit-in-docker-compose-version-3

      • stappersg@alien.topB
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 years ago

        Journactl doesn’t work in unRAID.

        So do the journalctl -p 4 -b on the host self.

        • gerardit04@alien.topOPB
          link
          fedilink
          English
          arrow-up
          1
          ·
          2 years ago

          What do you mean with host self?

          • mosaic_hops@alien.topB
            link
            fedilink
            English
            arrow-up
            1
            ·
            2 years ago

            On the host running unraid.

    • lilolalu@alien.topB
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 years ago

      You can also see oom killer messages with dmesg

Self-Hosted Main

main

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !main@selfhosted.forum

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don’t control.

For Example

  • Service: Dropbox - Alternative: Nextcloud
  • Service: Google Reader - Alternative: Tiny Tiny RSS
  • Service: Blogger - Alternative: WordPress

We welcome posts that include suggestions for good self-hosted alternatives to popular online services, how they are better, or how they give back control of your data. Also include hints and tips for less technical readers.

Useful Lists

  • Awesome-Selfhosted List of Software
  • Awesome-Sysadmin List of Software
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 19 users / day
  • 19 users / week
  • 19 users / month
  • 36 users / 6 months
  • 2 local subscribers
  • 583 subscribers
  • 1.82K Posts
  • 10.6K Comments
  • Modlog
  • mods:
  • communick
  • BE: 0.19.11
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org