Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config Help - No containers found #4

Closed
samcro1967 opened this issue Aug 28, 2024 · 2 comments
Closed

Config Help - No containers found #4

samcro1967 opened this issue Aug 28, 2024 · 2 comments

Comments

@samcro1967
Copy link

I am not having any luck getting this working. Not seeing any errors in the logs.

docker logs glance:

2024/08/28 06:51:28 INFO Starting server host="" port=8080

docker logs glance-docker-container-ext

2024/08/28 11:53:29 INFO starting webserver host="" port=8101

relevant glance.yml config

  - name: Docker
    columns:
      - size: full
        widgets:
          - type: extension
            allow-potentially-dangerous-html: true
            url: http://192.168.1.104:8101
            cache: 5m
            parameters:
              title: Docker Containers
              all: true
              order: name,status

Docker Tab screenshot
image

curl result

curl http://192.168.1.104:8101
<p>No containers found</p>

Docker Compose

services:
  glance:
    hostname: glance
    image: glanceapp/glance
    container_name: glance
    restart: always
    environment:
      - GITHUB_TOKEN=${GHCR_TOKEN_WHATSUPDOCKER}
    volumes:
      - ${docker}/glance/glance.yml:/app/glance.yml
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
    ports:
      - 8092:8080
    networks:
      - wg-pia
  glance-docker-container-ext:
    hostname: glance-docker-container-ext
    image: dvdandroid/glance-docker-container-ext:latest
    container_name: glance-docker-container-ext
    restart: always
    environment:
      - DOCKER_HOST=unix:///var/run/docker.sock
      - PORT=8101
    ports:
     - 8101:8101
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    networks:
      - wg-pia
  beszel:
    hostname: beszel
    image: henrygd/beszel
    container_name: beszel
    restart: always
    ports:
      - 8115:8090
    volumes:
      - ${docker}/beszel:/beszel_data
    labels:
      - glance.enable=true
      - glance.name=Beszel
      - glance.description=Test
      - glance.group=Test
      - glance.url=http://192.168.1.104:8115/
      - glance.icon="si:Jellyfin"
    networks:
      - wg-pia
    extra_hosts:
      - host.docker.internal:host-gateway
@DVDAndroid
Copy link
Owner

DVDAndroid commented Aug 28, 2024

Hi, you are defining container beszel in a group called "Test" (glance.group=Test), but you are not declaring any group with that identifier.
Try removing that label or edit the glance configuration like this:

  - name: Docker
    columns:
      - size: full
        widgets:
          - type: extension
            allow-potentially-dangerous-html: true
            url: http://192.168.1.104:8101
            cache: 5m
            parameters:
              title: Docker Containers
              all: true
              group: Test
              order: name,status

Let me know

@samcro1967
Copy link
Author

I removed the group label from Beszel and I am seeing it now. I was thinking group would allow containers to be grouped and displayed together in sections based on group. The group label in the widget acts more like a filter then if I am understanding correctly and limits to showing that group only. Appreciate the response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants