Article ID: 000090823 Content Type: Error Messages Last Reviewed: 12/12/2024

Failed to Execute Script Docker Compose on Intel® Edge Insights System

Environment

Ubuntu 18.04

BUILT IN - ARTICLE INTRO SECOND COMPONENT
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.

  1. Check if the docker group exists

    grep docker /etc/group

  2. 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

  3. Add the current user to the docker group

    usermod -aG docker $USER

  4. Log out and log back into the system

Related Products

This article applies to 1 products