I'm trying to start a DynamoDB Local Docker container with the -shareDb option but it failes with the message "Error while parsing options. Unrecognized option: -shareDb".

The docker image is from amazon/dynamodb-local and I'm starting using a docker-compose file.

The container starts okay without the -shareDb option.

Below is the docker-compose file I'm using:

version: '3'
    image: amazon/dynamodb-local  
      - "8000:8000"
    command: "-jar DynamoDBLocal.jar -shareDb -dbPath ."

Based on docs https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.DownloadingAndRunning.html , its not -shareDb but -sharedDb

  • Wow. I won't comment on how much time I spent looking into the issue without noticing that! Thanks - marking as answer. – JonathanSK Apr 11 at 13:57
  • @JonathanSK - the little issues are usually the worst one in programming. Its either hard to see them or hard to trigger them :). – libik Apr 11 at 14:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.