1
0
Fork 0
mirror of https://github.com/louislam/dockge.git synced 2026-03-03 02:06:55 -05:00

spawn docker ENOENT with Root project Directory Dockfile(s) #175

Closed
opened 2026-02-20 13:11:46 -05:00 by deekerman · 1 comment
Owner

Originally created by @matt-falkner on GitHub (Nov 24, 2024).

System Info

  • MacOS 15, Apple Silicon

Project structure. I don't have a stacks folder, all the source files are in the root project directory.

---ProjectSourceCodeFiles---
---ProjectBuildFiles---
Dockerfile.project-dev.yml
Dockerfile.project-prod.yml
Docker-compose.dev.yml
Docker-compose.prod.yml
Docker-compose.dockage.yml

Docker compose dockage file

version: "3.8"
services:
  dockge:
    image: louislam/dockge:1
    restart: unless-stopped
    ports:
      - 5001:5001
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      # Stacks Directory
      # ⚠️ READ IT CAREFULLY. If you did it wrong, your data could end up writing into a WRONG PATH.
      # ⚠️ 1. FULL path only. No relative path (MUST)
      # ⚠️ 2. Left Stacks Path === Right Stacks Path (MUST)
      - /Users/xxx/Documents/Development/ProjectName:/Users/xxx/Documents/Development/ProjectName
    environment:
      # Tell Dockge where to find the stacks
      - DOCKGE_STACKS_DIR=/Users/xxx/Documents/Development/ProjectName

Gets this error.

Error: spawn docker ENOENT
   at __node_internal_captureLargerStackTrace (node:internal/errors:496:5)
   at __node_internal_errnoException (node:internal/errors:623:12)
   at ChildProcess._handle.onexit (node:internal/child_process:283:19)
   at onErrorNT (node:internal/child_process:476:16)
   at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
   errno: -2,
   code: 'ENOENT',
   syscall: 'spawn docker',
  path: 'docker',
  spawnargs: [ 'compose', 'ps', '--format', 'json' ]
}

However, when I add a temporary /stacks/stackname folder(s) it starts working. But I cannot do this in practice because of how my project is structured. I believe the error is related to the project structure but cannot confirm. Have done a lot of trial and error.

Any ideas?

Originally created by @matt-falkner on GitHub (Nov 24, 2024). System Info - MacOS 15, Apple Silicon Project structure. I don't have a stacks folder, all the source files are in the root project directory. ```bash ---ProjectSourceCodeFiles--- ---ProjectBuildFiles--- Dockerfile.project-dev.yml Dockerfile.project-prod.yml Docker-compose.dev.yml Docker-compose.prod.yml Docker-compose.dockage.yml ``` Docker compose dockage file ```yaml version: "3.8" services: dockge: image: louislam/dockge:1 restart: unless-stopped ports: - 5001:5001 volumes: - /var/run/docker.sock:/var/run/docker.sock # Stacks Directory # ⚠️ READ IT CAREFULLY. If you did it wrong, your data could end up writing into a WRONG PATH. # ⚠️ 1. FULL path only. No relative path (MUST) # ⚠️ 2. Left Stacks Path === Right Stacks Path (MUST) - /Users/xxx/Documents/Development/ProjectName:/Users/xxx/Documents/Development/ProjectName environment: # Tell Dockge where to find the stacks - DOCKGE_STACKS_DIR=/Users/xxx/Documents/Development/ProjectName ``` Gets this error. ``` Error: spawn docker ENOENT at __node_internal_captureLargerStackTrace (node:internal/errors:496:5) at __node_internal_errnoException (node:internal/errors:623:12) at ChildProcess._handle.onexit (node:internal/child_process:283:19) at onErrorNT (node:internal/child_process:476:16) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) { errno: -2, code: 'ENOENT', syscall: 'spawn docker', path: 'docker', spawnargs: [ 'compose', 'ps', '--format', 'json' ] } ``` However, when I add a temporary /stacks/stackname folder(s) it starts working. But I cannot do this in practice because of how my project is structured. I believe the error is related to the project structure but cannot confirm. Have done a lot of trial and error. Any ideas?
deekerman 2026-02-20 13:11:46 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Nov 24, 2024):

@matt-falkner: Hello! 👋

This issue is being automatically closed because it does not follow the issue template. Please DO NOT open a blank issue.

@github-actions[bot] commented on GitHub (Nov 24, 2024): @matt-falkner: Hello! :wave: This issue is being automatically closed because it does not follow the issue template. Please DO NOT open a blank issue.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/dockge-louislam#175
No description provided.