skip to Main Content
Building localstack
unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /Applications/MAMP/htdocs/hidden_app_name/docker/Dockerfile: no such file or directory

this is what I’m getting after trying to run docker-compose up -d

The error is pretty straighforward, but the service localstack does not have any Dockerfile.

localstack:
    build:
      context: ./docker
    image: localstack/localstack:latest
    container_name: localstack
    platform: linux/arm64/v8
    ports:
      - "4566:4566"
      - "4571:4571"
    environment:
      - SERVICES=s3,ses,rekognition
      - DEBUG=1
      - DATA_DIR=/tmp/localstack/data
    volumes:
      - './.localstack:/tmp/localstack'
      - './.aws:/root/.aws'
      - '/var/run/docker.sock:/var/run/docker.sock'

Any ideas if this is related to the M1 Max Docker or anything like that and how to fix it?

2

Answers


  1. Chosen as BEST ANSWER

    Mihai is correct

    You should remove this from your docker-compose.yml:

    build:
          context: ./docker
    

  2. If there is no Dockerfile, then there is nothing to build, therefore there is no context needed. Context is what is sent to the docker daemon at build time.

    You should remove this from your docker-compose.yml:

    build:
          context: ./docker
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search