Custom Root Dir of balena binary

When I execute balena info on hostOS, I am seeing this result:

Can I customize the Docker Root Dir from a service?

Hi, can you tell us about your use case?

Hi, @karaxuna

I have been pulling out my hair out with an issue.

What I want to achieve is to get KubeEdge running as a balena service.

I have created a symlink on KE service to use the balena binary on hostOS:

ln -s /var/run/balena.sock /var/run/docker.sock

So KubeEdge is running, but the deploy application cannot be launched as it needs a permission to /var/lib/docker directory on hostOS:

  1. Can we bind mount /var/lib/docker to a container? Of course, I know it’s impossible. But any exceptional case? :slight_smile:
  2. I was thinking if we use a different Docker Root Dir(say /data/, which is shared?) we can get KubeEdge working?

Cheers

This is duplicate of Bind mount custom directory , please see response there.