Janus Ng
Explorer
- Joined
- Apr 10, 2016
- Messages
- 63
Hi all.
First a little background about me. Albeit I used FreeNAS 9 to TrueNAS Core 12, I am new to TrueNAS SCALE. I have stopped messing with TrueNAS since my HPE MicroServer Gen 8 died 3 years ago. I have no experience on Kubernetes either. I deploy containers most through docker compose.
I have recently assembled a used Supermicro machine with 12 bays for running TrueNAS SCALE. I have install TrueNAS SCALE 2023.10.0.1 on it.
I would like to install a simple container, glances on it. Here is the compose.yaml I used on a ubuntu 23.10.
Here is the content of my compose.yaml running on a ubuntu 2023.10:
I am having difficulty to get it work with the custom app module on TrueNAS SCALE. Particularly, how to pass the pid and volume /var/run/docker.sock onto the container. I would be delighted if there is a replacement for secrets but I am fine without it.
So far, I cannot even get it working on port 61208.
Any help would be greatly appreciated.
First a little background about me. Albeit I used FreeNAS 9 to TrueNAS Core 12, I am new to TrueNAS SCALE. I have stopped messing with TrueNAS since my HPE MicroServer Gen 8 died 3 years ago. I have no experience on Kubernetes either. I deploy containers most through docker compose.
I have recently assembled a used Supermicro machine with 12 bays for running TrueNAS SCALE. I have install TrueNAS SCALE 2023.10.0.1 on it.
I would like to install a simple container, glances on it. Here is the compose.yaml I used on a ubuntu 23.10.
Here is the content of my compose.yaml running on a ubuntu 2023.10:
Code:
--- version: "3" services: glances: image: nicolargo/glances:latest-full container_name: glances deploy: resources: limits: memory: 1G pid: host network_mode: host environment: - "GLANCES_OPT=-w --password -u ha" volumes: - /var/run/docker.sock:/var/run/docker.sock:ro - ./etc/glances.conf:/etc/glances.conf:ro secrets: - source: glances_password target: /root/.config/glances/ha.pwd restart: unless-stopped secrets: glances_password: file: ./secrets/ha.pwd
I am having difficulty to get it work with the custom app module on TrueNAS SCALE. Particularly, how to pass the pid and volume /var/run/docker.sock onto the container. I would be delighted if there is a replacement for secrets but I am fine without it.
So far, I cannot even get it working on port 61208.
Any help would be greatly appreciated.