https://rancher.com/ logo
Title
t

thankful-thailand-63500

05/11/2023, 5:30 PM
Hi everybody hoping i can get a little assistance on an issue i'm experiencing. I'm running on a M1 Mac with Rancher 1.8.1, and I have given rancher desktop full disk access. (this all works for my other team member who are running colima) I'm following this guide https://medium.com/platform-engineer/running-aws-dynamodb-local-with-docker-compose-6f75850aba1e using the 1.2 (docker compose way) section
version: '3.7'
services:
  dynamodb:
    image:  amazon/dynamodb-local
    container_name: my-dynamodb
    hostname: dynamodb
    restart: always
    volumes:
      -  ./my-dynamodb-data:/home/dynamodblocal/data
    ports:
      - 8100:8000
    command: "-jar DynamoDBLocal.jar -sharedDb -dbPath /home/dynamodblocal/data/"
i run my docker compose and i get the following:
Attaching to my-dynamodb
my-dynamodb  | Initializing DynamoDB Local with the following configuration:
my-dynamodb  | Port:    8000
my-dynamodb  | InMemory:        false
my-dynamodb  | DbPath:  /home/dynamodblocal/data/
my-dynamodb  | SharedDb:        true
my-dynamodb  | shouldDelayTransientStatuses:    false
my-dynamodb  | CorsParams:      null
but when i try to connect i get this:
my-dynamodb  | May 11, 2023 2:41:59 PM com.almworks.sqlite4java.Internal log
my-dynamodb  | WARNING: [sqlite] cannot open DB[1]: com.almworks.sqlite4java.SQLiteException: [14] unable to open database file
my-dynamodb  | May 11, 2023 2:41:59 PM com.almworks.sqlite4java.Internal log
my-dynamodb  | SEVERE: [sqlite] SQLiteQueue[shared-local-instance.db]: error running job queue
my-dynamodb  | com.almworks.sqlite4java.SQLiteException: [14] unable to open database file
it seems that the DB is not getting created in the
my-dynamodb-data
directory.