# \[Tester gesucht\] Neues Gladys Raspberry Pi OS-Bild unter Bullseye

**URL:** <https://community.gladysassistant.com/t/recherche-de-testeurs-nouvelle-image-gladys-raspberry-pi-os-sous-bullseye/6718>\
**Category:** Actualités\
**Created:** [6. Dezember 2021 um 14:23 UTC](https://community.gladysassistant.com/t/recherche-de-testeurs-nouvelle-image-gladys-raspberry-pi-os-sous-bullseye/6718 "2021-12-06T14:23:03Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![VonOx](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/vonox/32/10128_2.png) [@VonOx](https://community.gladysassistant.com/u/VonOx)\
**Post date:** [12. Januar 2022 um 06:24 UTC](https://community.gladysassistant.com/t/recherche-de-testeurs-nouvelle-image-gladys-raspberry-pi-os-sous-bullseye/6718/21 "2022-01-12T06:24:42Z")

</div>

OK, das USB-Problem gebe ich zu, da hatte ich keine Zeit, das zu prüfen

Was behoben sein sollte, ist die Erkennung von Docker, zum Beispiel für die MQTT-Integration

---

<div class="post-metadata">

**Author:** ![VonOx](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/vonox/32/10128_2.png) [@VonOx](https://community.gladysassistant.com/u/VonOx)\
**Post date:** [12. Januar 2022 um 14:47 UTC](https://community.gladysassistant.com/t/recherche-de-testeurs-nouvelle-image-gladys-raspberry-pi-os-sous-bullseye/6718/22 "2022-01-12T14:47:15Z")

</div>

Okay, ich habe weiter debuggt

cgroupv1 und v2 sind zwei verschiedene Paar Schuhe

Ich habe es geschafft, den Docker-Teil zum Laufen zu bringen, indem ich geschummelt habe

> <https://github.com/GladysAssistant/Gladys/blob/master/server/lib/system/system.getNetworkMode.js#L17>

```js
  if (!this.networkMode) {
    const cmdResult = await exec('head -1 /proc/self/cgroup | cut -d/ -f3');
    if (cmdResult.indexOf('docker') > -1) {
        result = cmdResult.split(/[-/.]+/);
        var cmdResult2 = result[1];
    } else {
       var cmdResult2 = cmdResult;
    }

const [containerId] = cmdResult2.split('\n');

```

Es ist hässlich, aber es funktioniert (man lacht nicht, ich habe das mit nano im Container gemacht ^^ )

**Die zurückgegebene Zeichenkette ist anders**

`0::/system.slice/docker-5c11f71a9288d80aafed5d79fa0b02987a1eb90f430538c50cbe93cc190a11d8.scope`

**Früher war es eher (nur die ID)**

`12:perf_event:/docker/1e8406126867fe82f2490c6bb4ea7b4905a972250f7f652d650da0713caa6392`

**Ergebnis:**

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/c/cd70abb93be06d4368667fd2b57355f302e1e290.png)

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/d/d4d425fb9c14be11ae5a9d9384e8d61360641274.png)

Jetzt kümmere ich mich um den USB-Teil

@pierre-gilles es gibt sicherlich eine elegantere Möglichkeit, um zu testen und die beiden Arten von Zeichenketten zu trennen, ich habe das nur zum Testen gemacht

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [12. Januar 2022 um 19:12 UTC](https://community.gladysassistant.com/t/recherche-de-testeurs-nouvelle-image-gladys-raspberry-pi-os-sous-bullseye/6718/23 "2022-01-12T19:12:51Z")

</div>

@VonOx funktioniert das, was du geändert hast, immer noch in Debian 10?

Es ist schon verrückt, dass es keine einfache, zugängliche Methode gibt ^^

---

<div class="post-metadata">

**Author:** ![VonOx](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/vonox/32/10128_2.png) [@VonOx](https://community.gladysassistant.com/u/VonOx)\
**Post date:** [13. Januar 2022 um 08:15 UTC](https://community.gladysassistant.com/t/recherche-de-testeurs-nouvelle-image-gladys-raspberry-pi-os-sous-bullseye/6718/24 "2022-01-13T08:15:28Z")

</div>

Ja, das passt beides, es ist nicht wirklich spezifisch für das Betriebssystem, sondern für die Version von cgroup.

---

<div class="post-metadata">

**Author:** ![VonOx](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/vonox/32/10128_2.png) [@VonOx](https://community.gladysassistant.com/u/VonOx)\
**Post date:** [20. Januar 2022 um 11:11 UTC](https://community.gladysassistant.com/t/recherche-de-testeurs-nouvelle-image-gladys-raspberry-pi-os-sous-bullseye/6718/25 "2022-01-20T11:11:37Z")

</div>

Also, ich habe ein bisschen über die Logik nachgedacht, um nur dockerode zu verwenden

Die Methode würde werden

```js
  if (!this.networkMode) {
    const searchContainer = await this.dockerode.listContainers({
      filters: { image: ['*/gladys:*'] },
    });
    const gladysContainer = this.dockerode.getContainer(searchContainer.id);
    const gladysContainerInspect = await gladysContainer.inspect();
    this.networkMode = get(gladysContainerInspect, 'HostConfig.NetworkMode', { default: 'unknown' });
  }

```

Die Idee ist, die ID über das Bild zu ergattern (noch nicht getestet, das ist nur eine Überlegung)

@AlexTrovato @pierre-gilles was denkt ihr?

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [20. Januar 2022 um 12:13 UTC](https://community.gladysassistant.com/t/recherche-de-testeurs-nouvelle-image-gladys-raspberry-pi-os-sous-bullseye/6718/26 "2022-01-20T12:13:02Z")

</div>

> [@VonOx](#):
>
> Ich habe ein bisschen über die Logik nachgedacht, um nur dockerode zu verwenden

Das ist eine gute Idee! Damit entfallen alle „System-Hacks“.

Ich denke, das könnte funktionieren. Der einzige Fall, in dem es nicht funktionieren würde, wäre, wenn jemand zwei Gladys-Instanzen parallel startet (weil ich nicht denke, dass andere Projekte ein Docker-Image mit dem Namen „gladys“ hätten).

---

<div class="post-metadata">

**Author:** ![VonOx](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/vonox/32/10128_2.png) [@VonOx](https://community.gladysassistant.com/u/VonOx)\
**Post date:** [17. Februar 2022 um 10:05 UTC](https://community.gladysassistant.com/t/recherche-de-testeurs-nouvelle-image-gladys-raspberry-pi-os-sous-bullseye/6718/27 "2022-02-17T10:05:26Z")

</div>

Na gut, ich bin zur Hack-Methode mit einem grep / sed zurückgekehrt, die beide Fälle abdeckt (getestet in cgroup v1 und v2)

> <https://github.com/GladysAssistant/Gladys/pull/1434>
>
> Rework on the getNetworkMode, more precisely getting the container Id:
> 
> \* Gett…ing container id from cid file if exist
> \* Updateing command to be cgroups v2 compliant
> 
> ⚠️ If host system is using cgroupv2 , gladys container must be created with specific argument
> \`\`\`
> \--cgroupns=host 
> \-v /sys/fs/cgroup:/sys/fs/cgroup:rw
> \`\`\`
> So documentation and rpi image need to be updated too and cgroup "usage" deprecated

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [18. Februar 2022 um 10:09 UTC](https://community.gladysassistant.com/t/recherche-de-testeurs-nouvelle-image-gladys-raspberry-pi-os-sous-bullseye/6718/28 "2022-02-18T10:09:03Z")

</div>

Aha, es gibt nichts Besseres als diese Methode dafür am Ende 🙂

Funktioniert das mit beiden Versionen, also sowohl mit Debian 10 als auch 11?

Wenn ja, ist das super!

---

<div class="post-metadata">

**Author:** ![VonOx](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/vonox/32/10128_2.png) [@VonOx](https://community.gladysassistant.com/u/VonOx)\
**Post date:** [18. Februar 2022 um 10:24 UTC](https://community.gladysassistant.com/t/recherche-de-testeurs-nouvelle-image-gladys-raspberry-pi-os-sous-bullseye/6718/29 "2022-02-18T10:24:54Z")

</div>

Ja, in beiden Fällen sind die aktuellen Instanzen nicht betroffen.

Es bleibt noch, die Dokumentation und das Test-Image Buster zu aktualisieren.

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [18. Februar 2022 um 10:25 UTC](https://community.gladysassistant.com/t/recherche-de-testeurs-nouvelle-image-gladys-raspberry-pi-os-sous-bullseye/6718/30 "2022-02-18T10:25:39Z")

</div>

Nur eine Frage, warum brauchte man früher keine spezifischen Parameter beim docker run hinzuzufügen, und jetzt müsste man das?

---

<div class="post-metadata">

**Author:** ![VonOx](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/vonox/32/10128_2.png) [@VonOx](https://community.gladysassistant.com/u/VonOx)\
**Post date:** [18. Februar 2022 um 10:46 UTC](https://community.gladysassistant.com/t/recherche-de-testeurs-nouvelle-image-gladys-raspberry-pi-os-sous-bullseye/6718/31 "2022-02-18T10:46:27Z")

</div>

Kurz gesagt, in cgroupsv1 reichte der Argument `--privileged`. In cgroups v2 stellt Docker nur mit dem Argument `--cgroupns host` 🙃 bereit.

Ich muss versuchen, so viele wie möglich der betroffenen OS-Versionen für die Dokumentation aufzulisten.

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [18. Februar 2022 um 10:50 UTC](https://community.gladysassistant.com/t/recherche-de-testeurs-nouvelle-image-gladys-raspberry-pi-os-sous-bullseye/6718/32 "2022-02-18T10:50:24Z")

</div>

Danke für die Erklärung! Tatsächlich muss man das dann hinzufügen.

Und wenn die Option in älteren Versionen vorhanden ist, gibt es dann ein Problem?

docker run --cgroupns host ändert nichts an einem Debian 10?

---

<div class="post-metadata">

**Author:** ![VonOx](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/vonox/32/10128_2.png) [@VonOx](https://community.gladysassistant.com/u/VonOx)\
**Post date:** [18. Februar 2022 um 10:56 UTC](https://community.gladysassistant.com/t/recherche-de-testeurs-nouvelle-image-gladys-raspberry-pi-os-sous-bullseye/6718/33 "2022-02-18T10:56:44Z")

</div>

Nein, das ändert nichts

Einzige Voraussetzung ist Docker 20.10.0 mini (veröffentlicht 08/2020), da dieser Parameter mit der API in Version 1.41 eingeführt wurde

> **[Docker Engine version 29 release notes](https://docs.docker.com/engine/release-notes/29/)**
>
> Learn about the new features, bug fixes, and breaking changes for Docker Engine

---

<div class="post-metadata">

**Author:** ![VonOx](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/vonox/32/10128_2.png) [@VonOx](https://community.gladysassistant.com/u/VonOx)\
**Post date:** [18. Februar 2022 um 11:01 UTC](https://community.gladysassistant.com/t/recherche-de-testeurs-nouvelle-image-gladys-raspberry-pi-os-sous-bullseye/6718/34 "2022-02-18T11:01:00Z")

</div>

Ich habe gerade die Option --cidfile entdeckt 🙂

> **[Running containers](https://docs.docker.com/engine/containers/run/)**
>
> Running and configuring containers with the Docker CLI

Man müsste einfach eine Datei lesen.

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [18. Februar 2022 um 11:03 UTC](https://community.gladysassistant.com/t/recherche-de-testeurs-nouvelle-image-gladys-raspberry-pi-os-sous-bullseye/6718/35 "2022-02-18T11:03:06Z")

</div>

> [@VonOx](#):
>
> Ich habe gerade die Option --cidfile entdeckt 🙂

Unglaublich! Haben wir uns etwa völlig umsonst geärgert? 😂

Das scheint schon seit Ewigkeiten verfügbar zu sein, ich habe Beiträge aus dem Jahr 2015 darüber gesehen.

Den aktuellen Funktionsumfang müssen wir trotzdem für alle Produktivsysteme beibehalten.

---

<div class="post-metadata">

**Author:** ![VonOx](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/vonox/32/10128_2.png) [@VonOx](https://community.gladysassistant.com/u/VonOx)\
**Post date:** [18. Februar 2022 um 11:04 UTC](https://community.gladysassistant.com/t/recherche-de-testeurs-nouvelle-image-gladys-raspberry-pi-os-sous-bullseye/6718/36 "2022-02-18T11:04:56Z")

</div>

ja, ich habe es gerade getestet, genau das ist es, was wir wollen, der volle ID.

 ![image](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/8/82bd6267bfecd43cd7b701218aff9842e5e2df6e.png)

Wir testen die Existenz der Datei und falls sie nicht existiert, verwenden wir die alte Methode.  
So fügen wir keine permissiven Argumente für neue Deployments hinzu und das Legacy funktioniert weiterhin.

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [18. Februar 2022 um 11:13 UTC](https://community.gladysassistant.com/t/recherche-de-testeurs-nouvelle-image-gladys-raspberry-pi-os-sous-bullseye/6718/37 "2022-02-18T11:13:41Z")

</div>

> [@VonOx](#):
>
> Teste die Existenz der Datei und falls sie nicht existiert, verwende die alte Methode.  
> So fügen wir keine permissiven Argumente für neue Deployments hinzu und das Legacy funktioniert weiterhin.

Das klingt perfekt! Tolle Idee 👍

---

<div class="post-metadata">

**Author:** ![GBoulvin](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/gboulvin/32/10006_2.png) [@GBoulvin](https://community.gladysassistant.com/u/GBoulvin)\
**Post date:** [18. Februar 2022 um 15:15 UTC](https://community.gladysassistant.com/t/recherche-de-testeurs-nouvelle-image-gladys-raspberry-pi-os-sous-bullseye/6718/38 "2022-02-18T15:15:21Z")

</div>

…und planen Sie eine 64-Bit-Version?

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [18. Februar 2022 um 15:31 UTC](https://community.gladysassistant.com/t/recherche-de-testeurs-nouvelle-image-gladys-raspberry-pi-os-sous-bullseye/6718/39 "2022-02-18T15:31:10Z")

</div>

Gute Frage, @VonOx hast du eine Idee, wie man 64-Bit-Builds aus dem Repo erstellen kann?

---

<div class="post-metadata">

**Author:** ![lmilcent](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/lmilcent/32/7023_2.png) [@lmilcent](https://community.gladysassistant.com/u/lmilcent)\
**Post date:** [18. Februar 2022 um 15:36 UTC](https://community.gladysassistant.com/t/recherche-de-testeurs-nouvelle-image-gladys-raspberry-pi-os-sous-bullseye/6718/40 "2022-02-18T15:36:27Z")

</div>

Zur Info:

> **[Raspberry Pi : un gain de performance gratuit de 41 % grâce au 64 bits —...](https://www.frandroid.com/produits-android/ordinateurs/1229779_raspberry-pi-un-gain-de-performance-gratuit-de-48-grace-au-64-bits)**
>
> Le système d’exploitation officiel des Raspberry Pi, Raspberry Pi OS, passe enfin au 64 bits, ce qui apporte un gain de performances significatif,

[Vorherige Seite](https://community.gladysassistant.com/t/recherche-de-testeurs-nouvelle-image-gladys-raspberry-pi-os-sous-bullseye/6718.md?page=1)

[Nächste Seite](https://community.gladysassistant.com/t/recherche-de-testeurs-nouvelle-image-gladys-raspberry-pi-os-sous-bullseye/6718.md?page=3)
