hercules-ci / arion

Run docker-compose with help from Nix/NixOS
Apache License 2.0
631 stars 47 forks source link

Support for docker rootless #168

Open jooooscha opened 1 year ago

jooooscha commented 1 year ago

First, I did not see any contribution guide, therefore I am just opening this PR. I hope that's ok.

Since version 22.05 NixOS has support for rootless docker (manual, docs). Therefore, I want to add support for it to this great project.

This is currently not working, yet. But I do not know enough about the internals of arion to fix it. I get some weird docker error; something about certificates (please try it out and see for yourselves). Also, I am not sure if adding the DOCKER_HOST variable is necessary or if there is a better way (For me the option docker.rootless.setSocketVariable seems to not work) I am sorry that I cannot be of more help here.

I hope this PR is welcome and is a starting point to bring rootless docker support to this project.

jooooscha commented 1 year ago

Just for the record, the error I was referring to is the following:

image

Do you have any idea what could cause this? This only happens when I enable rootless docker

jooooscha commented 1 year ago

Nvm my previous message. It had nothing to do with arion. A reboot fixed it.

nikp123 commented 6 months ago

Is there any chance this gets merged? I'd love for rootless docker to be a thing in arion.