Git Product home page Git Product logo

Comments (5)

CommanderStorm avatar CommanderStorm commented on May 28, 2024 1

See https://github.com/louislam/uptime-kuma/wiki/Environment-Variables#docker-specific-environment-variables
You could use the standard PUID/PGID. I have not tested if they work.

v2 will come with full support of running as another user via the -rootless tags. See #4052 for further context.
See #4171 for what bugfixes still need to happen until a first beta can be issued.

from uptime-kuma.

Feriman22 avatar Feriman22 commented on May 28, 2024

Hmm, that's strange... The document says that the default PUID and GUID are 1000, but when I set these values:

    environment:
      - PUID=1000
      - PGID=1000

in a docker compose, the Uptime Kuma cannot check the container status. Any idea why?

image

from uptime-kuma.

CommanderStorm avatar CommanderStorm commented on May 28, 2024

cannot check the container status

How have you mounted the docker socket?
What are the permissions of said socket?
Can the chosen PUID/PGID access said socket?

from uptime-kuma.

Feriman22 avatar Feriman22 commented on May 28, 2024

You can find my docker compose below. I have added it as read only, due to the checking doesn't require a write permission.

srw-rw---- 1 root docker 0 Jan 14 12:14 /var/run/docker.sock

The user with PIUD 1000 is part of the docker group, so it has an access to it.

version: '3.8'

services:
  uptime-kuma:
    image: louislam/uptime-kuma:alpine
    container_name: uptime-kuma
    environment:
      - PUID=1000
      - PGID=1000
    volumes:
      - /mnt/Docker/uptime-kuma:/app/data
      - /var/run/docker.sock:/var/run/docker.sock:ro
    ports:
      - 3001:3001
    restart: always
    network_mode: bridge
    cpus: 0.5
    mem_limit: 400M

from uptime-kuma.

github-actions avatar github-actions commented on May 28, 2024

We are clearing up our old help-issues and your issue has been open for 60 days with no activity.
If no comment is made and the stale label is not removed, this issue will be closed in 7 days.

from uptime-kuma.

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.