Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to retain DynamoDB table and data when closing Docker? #8

Open
ricbrue opened this issue Jan 26, 2022 · 1 comment
Open

How to retain DynamoDB table and data when closing Docker? #8

ricbrue opened this issue Jan 26, 2022 · 1 comment

Comments

@ricbrue
Copy link

ricbrue commented Jan 26, 2022

Hi, I am looking for a method to retain DynamoDB data when powering off the PC, when it restarts (and then I restart the Docker image) I have to manually recreate the DynamoDB table and insert the new data (old data is lost). How can I maintain the DynamoDB table data when turning off the Docker engine?

@evalphobia
Copy link

You can use volume option (-v, --volume) and bind to container's /var/lib/dynamodb.

docker run -v $HOME/.local/dynamodb:/var/lib/dynamodb -p 8000:8000 -it --rm instructure/dynamo-local-admin

https://docs.docker.com/engine/reference/commandline/run/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants