Skip to content

Drim script not considering needing elavated permission to run docker #2

@bahit

Description

@bahit

On a vanilla install of Ubuntu 26.04 (I tried this on 24.04), running the command below works:

curl -fsSL https://assets.kaneo.app/install.sh | sh

However on first drim setup (selecting N for reverse proxy) and skipping entering domain, after it installed docker, there is an error about permission:

Docker installed successfully!
Docker Compose is available

📝 Configuration
Press Enter to use default values

Do you want to use a reverse proxy? (recommended) (y/N)
You chose not to use a reverse proxy.
API will be exposed on port 1337, Web on port 5173
Enter your domain (e.g., kaneo.example.com) [optional]:
No domain specified. Services will be available at:
  - API: http://localhost:1337
  - Web: http://localhost:5173
Generating configuration files...
Generated docker-compose.yml
Generated .env
Pulling Docker images (this may take a few minutes)...
unable to get image 'ghcr.io/usekaneo/api:latest': permission denied while trying to connect to the docker API at unix:///var/run/docker.sock
Error: failed to pull images: exit status 1

The fix was to add the user who is running drim setup to be part of docker group, e.g. user ubuntu: sudo usermod -aG docker ubuntu

After relogin and verifying part of docker group (groups), running drim setup works and starts downloading images and proceeding with other parts of the script setup.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions