open icon indicating copy to clipboard operation
open copied to clipboard

Failed to run Docker Compose. Error: (HTTP code 409) unexpected - cannot join network of a non running container

Open basharat58 opened this issue 3 years ago • 0 comments

I am running a docker-compose file, with the following:

version: "3.7"
services:
  localstack:
    container_name: "commandeer-localstack"
    image: localstack/localstack:latest
    hostname: localstack
    ports:
      - "4567-4597:4567-4597"
      - "${PORT_WEB_UI-8080}:${PORT_WEB_UI-8080}"
    environment:
      - SERVICES=s3,sqs,lambda,dynamodb,sts,iam,cloudwatch,apigateway,events,sns
      - DEBUG=1
      - DATA_DIR=/tmp/localstack/data
      - PORT_WEB_UI=8080
      - LAMBDA_EXECUTOR=docker-reuse
      - KINESIS_ERROR_PROBABILITY=${KINESIS_ERROR_PROBABILITY- }
      - DOCKER_HOST=unix:///var/run/docker.sock
    volumes:
      - "./.localstack:/tmp/localstack"
      - "/var/run/docker.sock:/var/run/docker.sock"

Once this runs, although it says: LocalStack started Running Docker Compose

I get an error: image

In cmd, when I run docker ps I get the following: image

The image is 'localstack/localstack:0.10.6' and not 'localstack/localstack:latest'

I have terraform scripts, when I run them they take forever to execute: image

Although the above shows 10s, then go on forever until I stop them. I am running in us-east-1 region. That is set in the Terraform scripts and also in Commandeer, when I go to Accounts: image

I am new to Commandeer/LocakStack and Terraform, please can someone help to get me started running locally with these?

basharat58 avatar Dec 27 '21 17:12 basharat58