Summary
How to set Docker Compose permissions to execute scripts.
Description
- Installed Intel® Edge Insights System using the installation guide.
- Ran into the following error when building the User Defined Functions (UDFs) examples:
Error while fetching server API version: ('Connection aborted.', PermissionError(13, 'Permission denied'))
Failed to execute script docker-compose
Resolution
Docker compose needs elevated permissions to execute, please run command using sudo or add the user to the docker group using the steps below.
- Check if the docker group exists
grep docker /etc/group
- Create the docker group if the previous command did not have any output (Note: the following commands may need elevated permissions)
groupadd docker
systemctl restart docker
- Add the current user to the docker group
usermod -aG docker $USER
- Log out and log back into the system