Skip to content

Error: docker: not found when running in docker compose #235

@joshdura

Description

@joshdura

I am trying to run a pretty simple serverless stack (Docker compose, running a Node 16 serverless project) on localstack with this plugin, and any time I try to spin it up I get the following error:

Error:
Error: Command failed: docker ps
/bin/sh: 1: docker: not found
    at ChildProcess.exithandler (node:child_process:402:12)
    at ChildProcess.emit (node:events:513:28)
    at ChildProcess.emit (node:domain:489:12)
    at maybeClose (node:internal/child_process:1100:16)
    at Socket.<anonymous> (node:internal/child_process:458:11)
    at Socket.emit (node:events:513:28)
    at Socket.emit (node:domain:489:12)
    at Pipe.<anonymous> (node:net:301:12)

Serverless version: 3.24.1
Docker version: 23.0.5
Node version: 16.19.0

serverless-localstack custom config:

localstack:
    debug: true
    stages:
        - local
    host: http://host.docker.internal
    edgePort: 4566
    autostart: true
    lambda:
        mountCode: true

I feel like I am missing some sort of simple setup option somewhere. Anyone have any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions