1 Answer
- Newest
- Most votes
- Most comments
0
The -dbPath
specifies the path in the container.
Therefore, if you want to create it in a folder on your computer, you must share it with the container using the `-v' option.
For example, you can run the following.
docker run -p 8001:8001 -v $DATA_DIRECTORY:/home/dynamodblocal amazon/dynamodb-local -jar DynamoDBLocal.jar -sharedDb -dbPath . -cors http://localhost:5173,http://localhost:3000
Relevant content
- asked 2 years ago
- Accepted Answerasked 5 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago