Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
matt-falkner opened this issue Nov 24, 2024 · 1 comment
Closed

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

matt-falkner opened this issue Nov 24, 2024 · 1 comment
Labels
invalid-format This doesn't seem right

Comments

@matt-falkner
Copy link

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?

Copy link

@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 github-actions bot added the invalid-format This doesn't seem right label Nov 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid-format This doesn't seem right
Projects
None yet
Development

No branches or pull requests

1 participant