Replies: 4 comments 5 replies
-
Please read #135 How to ask for help, and bring back as much info as you can. What version of TrueNAS SCALE are you running? How did you install the jail? When you say "I'm trying to monitor... via uptime kuma", is uptime kuma inside the jail or outside it? Do you even have /var/run/docker.sock on the host? These are all questions that come to mind immediately, but it's probably not enough to understand, collect as much as you can, this would make it more likely for someone here to be able to assist. |
Beta Was this translation helpful? Give feedback.
-
version: "3.3" This is what the compose.yaml looks like, the docker socket fails as i think i need to bind it. |
Beta Was this translation helpful? Give feedback.
-
Thanks Lockszmith. I think after doing more research on what you mentioned above i might have a permissions issue with docker.sock. root@docker:~# ls -l /var/run/docker.sock think i might need to give my containers user rights as they wouldnt have root access ? would i be correct in this train of thinking ? |
Beta Was this translation helpful? Give feedback.
-
The docker daemon, by default, runs as root (unless you've intentionally configured it for rootless). So permissions are not likely to be the issue, but I might be missing a piece of the puzzle. This is uptime-kuma's Dockerfile, specifically the last build phase, in which there is no USER directive, which means it's running as root. And you compose.yml code above, does not show you're setting a special user, so again, probably running as root. Let's do this, please dump as a reply to this thread, as much data as you can about your setup:
what is a mermaid code block? - click to view an example```mermaid %% This is the code for the drawing describing the relationship between the different component on TrueNAS SCALE flowchart TD subgraph host-c["host (TrueNAS SCALE)"] direction LR fs[/"file-system click to view the rendering of above example%% This is the code for the drawing describing the relationship between the different component on TrueNAS SCALE
flowchart TD
subgraph host-c["host (TrueNAS SCALE)"]
direction LR
fs[/"file-system<br/>(on host)"/]
subgraph jail[jail]
direction LR
d["docker cli"]
dc([docker-daemon])
ds@{ shape: h-cyl, label: "fs:<code>/var/run/docker.sock</code>" }
dk@{ shape: div-rect, label: "Dockge" }
uk@{ shape: div-rect, label: "Uptime Kuma" }
d & dk & uk .-o ds --> dc
end
jail -->|<code>--bind</code>| fs
end
|
Beta Was this translation helpful? Give feedback.
-
Hello,
i have a few containers that require the use of - /var/run/docker.sock:/var/run/docker.sock, namely uptime kuma. im trying to monitor the container its self via uptime kuma.
in my config ive added --bind='/var/run/docker.sock:/var/run/docker.sock'. this crashes the jail and fails to restart.
sorry im a newbie to this and have scoured the internet on how to pass this through.
Beta Was this translation helpful? Give feedback.
All reactions