Replies: 5 comments 1 reply
-
When you use sysbox runtime, you are not supposed to mount the host docker docker into the workspace. |
Beta Was this translation helpful? Give feedback.
-
Do you mean creating volume for /var/lib/docker directory? If yes, then how can I keep all docker data (databases, etc.) from the workspace interior when the workspace is restarted? |
Beta Was this translation helpful? Give feedback.
-
@mwsv Sorry, I misunderstood. You are doing that part correctly. Can you remove |
Beta Was this translation helpful? Give feedback.
-
@matifali user coder inside a workspace belongs to docker group:
...about privileged = true, it was an attempt to do something to fix this issue, with no effect of course. So it is not related with the issue - I had the same issue without this in template configuration file. |
Beta Was this translation helpful? Give feedback.
-
Same here, I ran the workspace container with sysbox runtime, and I created a volume to hold the workspace's
The container user is root instead of coder. At first it works great, but one day after I changed Dockerfile a bit (install opencv libraries in it) and rebuilt the workspace, the
The owner of
Entirely delete and recreate a new workspace works for some time, then the same problems would appear again after an occasional restart. I'm wondering if the problem rooted in Coder, or Sysbox, or the Docker daemon on the host? |
Beta Was this translation helpful? Give feedback.
-
I'm using Sysbox to use Docker inside a workspace, workspace resource in Terraform looks like this:
...it's used in on-premise instance of Coder. Unfortunately, I cannot run some of the workspaces from time to time, especially after Coder host machine is restarted. I have such an error message when I try to run dockerd inside a workspace:
...and I have noticed, that in such case permissions of /var/lib/docker directory inside a workspace are broken (nobody/nogroup user and group, I have got it only in such case):
...I would appreciate any suggestions/solutions for this.
Beta Was this translation helpful? Give feedback.
All reactions