Giter Club home page Giter Club logo

Comments (7)

latimeria68 avatar latimeria68 commented on May 18, 2024 1

now the puzzle is clear, thank you very much indeed.
The only problem still here is the gmail account not sending emails, but this is a problem with many app even when you use insecure app password, not diun related.

from diun.

crazy-max avatar crazy-max commented on May 18, 2024

Hi @sgiannulli, you have to create the diun.yml before running docker-compose up -d, otherwise a folder named diun.yml will be created instead.

from diun.

latimeria68 avatar latimeria68 commented on May 18, 2024

Hi,
ok, first step done but now:

Sun, 31 May 2020 18:52:32 CEST INF Starting Diun 3.0.0
Sun, 31 May 2020 18:52:32 CEST INF Cron triggered
Sun, 31 May 2020 18:52:32 CEST ERR Cannot create Docker client error="Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?" provider=docker
Sun, 31 May 2020 18:52:32 CEST WRN No image found
Sun, 31 May 2020 18:52:32 CEST INF Cron initialized with schedule 0 * * * *
Sun, 31 May 2020 18:52:32 CEST INF Next run in 7 minutes (2020-05-31 19:00:00 +0200 CEST)

Docker is running at /var/run/docker.sock
Diun config data are on a different hard drive:

- /srv/dev-disk-by-label-orangepi2/config/diun/data:/data
- /srv/dev-disk-by-label-orangepi2/config/diun/diun.yml:/diun.yml:ro

Thank you

from diun.

crazy-max avatar crazy-max commented on May 18, 2024

@sgiannulli You have to mount /var/run/docker.sock:/var/run/docker.sock as explained in https://github.com/crazy-max/diun/blob/master/doc/providers/docker.md#quick-start

from diun.

latimeria68 avatar latimeria68 commented on May 18, 2024

yes, right.
Sun, 31 May 2020 19:23:27 CEST WRN No image found
I can only think that if Diun is not running inside the same docker-compose of another container it cannot monitor it, right?

from diun.

crazy-max avatar crazy-max commented on May 18, 2024

@sgiannulli

If watch_by_default is disabled (default), therefore Diun will not scan containers not labellized.

I can only think that if Diun is not running inside the same docker-compose

No Diun scans all containers of the stipulated Docker endpoint (/var/run/docker.sock in your case).

from diun.

crazy-max avatar crazy-max commented on May 18, 2024

@sgiannulli

The only problem still here is the gmail account not sending emails, but this is a problem with many app even when you use insecure app password, not diun related.

Something like that should work:

notif:
  mail:
    host: "smtp.gmail.com"
    port: 587
    ssl: true
    insecure_skip_verify: false
    username: "foo"
    password: ""
    from: "[email protected]"
    to: "[email protected]"

from diun.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.