Editing /mnt/boot/config.json from within container

Hello all,

Is there a way to edit the /mnt/boot/config.json file from within a container.

The use-case is the following:

For some customers, we would like to automatically set custom dns and ntp servers.
Doing this manually for each device can consume a lot of time, which we would like to automatize.

What I could think of so far is to maybe mount the file/parent-folder into the container through the docker-compose file.
But from what I’ve read, this directory is not mountable into containers for security reasons.

I hoped to find some balena supervisor api endpoint, but could not find one.

If anyone knows a solution, I would be happy to hear it!

1 Like