coolify icon indicating copy to clipboard operation
coolify copied to clipboard

[Bug]: Remote docker engine fails when user is not root

Open murdockq opened this issue 2 years ago • 1 comments

Is there an existing issue for this?

I have searched the existing issues

Steps To Reproduce

Setup a new remote docker engine using a non-root user

Version

v3.12.8

Description

I setup a new instance on ec2 using the Amazon Linux 2 which has a user name of ec2-user.

Then when I configured the ssh to remote into and use the ec2-user name it fails to run these commands since they require root privileges to execute:

Error while verifying remote docker engine https://github.com/coollabsio/coolify/blob/adf82c04ad4f92eff0522b864430c8b99c4893c8/apps/api/src/routes/api/v1/destinations/handlers.ts#L254

https://github.com/coollabsio/coolify/blob/adf82c04ad4f92eff0522b864430c8b99c4893c8/apps/api/src/routes/api/v1/destinations/handlers.ts#L245:L255

I didn't figure out which commands failed but seeing as how /etc/docker/ is owned by root on my instance and the systemctl all requires sudo to run, they both would fail.

The easiest solution would be to add sudo to the commands so that they have proper privileges to run, but I'm not sure all the areas this problem might persist.

murdockq avatar Jan 03 '23 23:01 murdockq

same here

kevindesousa avatar May 04 '23 11:05 kevindesousa

I'm closing this issue, because tracking features will be moved to GitHub discussions. Github issues will be only for bugs.

Version 4 is in full focus. v3 related issues will be closed, if it is not a critical bug.

Thanks for your understanding.

andrasbacsai avatar Sep 08 '23 09:09 andrasbacsai