I am trying to migrate from docker ce to balena engine which seems non-trivial.
I have tried to replace docker binaries by used for balena engine binaries using symlinks. Seems non-trivial to perform drop-in replace of docker and non-trivial to update docker systemd files with the balena engine binaries. Unable to get a working balena daemon.
I am migrating in order to use the balena secrets feature.
Anyone managed to get secrets working and performing a valid drop-in replacement of docker ce?
Would you mind providing a little more information on your platform & how you installed balenaEngine? Did you use the install script outlined here: https://www.balena.io/engine/, or do something else entirely?
I have tried both the installation script and installation manual to ~/bin including PATH update to ensure balena-engine symbolic links are loaded before docker ce. From this point on I have tried updating docker.server, docker.sock and containerd.service in order to use the balena engine binaries. From this experiment I have seen EOF error and shim.lock error while building. I have also tried symbolic links matching docker ce without any luck.
I have not found any balena engine service files to replace or coexist with docker ce.
From this experiment I have seen EOF error and shim.lock error while building
Did you report any issues elsewhere that you could link here?
We have systemd service files for balenaEngine here if you want to compare yours…
If you’re using the lastest release from github you might experience this issue which you can fix by adding GODEBUG=netdns=go to the environment in your unit file.
Hey @aliasbits thank you so much for reporting back and providing this for others
The steps look spot-on, the only thing is that I think you can drop the last systemctl start balena-engine as the daemon as it is now configured as a socket activated service and using the cli to try and talk to /var/run/balena-engine.sock will automatically start it
I managed to use secrets inside the image as described in balena secrets
Note that if you use nested images, then changes may be needed in the Dockerfile using a previous build images as balena cli adds a postfix matching the service name in the docker-compose file.