In docker’s file system, there are four DB files that are encrypted. How can I open them?
They are fscache.db,local-kv.db,meta.db and metadata.db.
I have a tutorial where I write about those files too. I also have a script to build the database reader written in Go
If you are interested in the source code of the db reader, this is it:
You can also find the sources from which I learned how I could read these files.
Originally the format was “bolt”, which was a very simple key-value pair database. ETCD forked it and named it “bbolt”.
Just to make it easier to find, I share the clickable links too, how I learned about bbolt:
- First clue: Decoding Docker’s local-kv.db – The Qiqitori Blogs
- New version created by etcd: GitHub - etcd-io/bbolt: An embedded key/value database for Go.
- Listing buckets: Would be great to have a function to get a list of buckets · Issue #295 · boltdb/bolt · GitHub
- Removing non-printable characters: string - How to remove non-printable characters - Stack Overflow
1 Like
Thank you so much!!! I will have a try,thanks again.
I did read something in local-kv.db,but I read nothing in other three databases.What did I do wrong?Or, is just nothing there? But they’re 32kb,I think they should have something.