{"id":29311537,"url":"https://github.com/abecodes/docker_sqlite","last_synced_at":"2025-10-21T17:59:56.649Z","repository":{"id":97065204,"uuid":"139597828","full_name":"abecodes/docker_sqlite","owner":"abecodes","description":"A simple sqlite3 docker container for easy database debugging.","archived":false,"fork":false,"pushed_at":"2019-01-01T18:20:24.000Z","size":2,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-07T08:15:10.532Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/abecodes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-07-03T14:45:12.000Z","updated_at":"2024-04-19T10:50:29.000Z","dependencies_parsed_at":"2023-03-13T16:19:41.225Z","dependency_job_id":null,"html_url":"https://github.com/abecodes/docker_sqlite","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/abecodes/docker_sqlite","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abecodes%2Fdocker_sqlite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abecodes%2Fdocker_sqlite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abecodes%2Fdocker_sqlite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abecodes%2Fdocker_sqlite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abecodes","download_url":"https://codeload.github.com/abecodes/docker_sqlite/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abecodes%2Fdocker_sqlite/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280308521,"owners_count":26308494,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-21T02:00:06.614Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-07-07T08:15:07.056Z","updated_at":"2025-10-21T17:59:56.644Z","avatar_url":"https://github.com/abecodes.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker sqlite3\n\n## What is this?\n\nThis is a simple docker container hosting sqlite3. It can be used to easily spin up a sqlite database or debug an existing one.\nSay you are developing an app based on sqlite and want to check your database state but also want to keep your system environment as clean as possible, or want a container for better organization, or any other reason.\nJust fire the container up with an interactive shell and pass your database in...et voila, easylife.\n\n## Running the container default mode\n\nIf no other options are passed, a database called 'default' is created and the sqlite-cli starts from there.\n\n```bash\ndocker run -it --name sqlite3 abecodes/sqlite3\n```\n\n## Running the container with persitent data\n\nThe container can be started with a volume linked to it to persist data:\n\n```bash\ndocker run \\\n        --rm \\\n        -it \\\n        -v \"/path/to/persistent/data:/db\" \\\n        --name sqlite \\\n        abecodes/sqlite\n```\n\nMount works fine as well:\n\n```bash\ndocker run \\\n        --rm \\\n        -it \\\n        --mount type=bind,source=/path/to/persistent/data,destination=/db \\\n        --name sqlite \\\n        abecodes/sqlite\n```\n\n## Running container with an already existing database\n\nTo debug an existing database, you can link the folder containing the database and pass the database name as environment variable:\n\n```bash\ndocker run \\\n        --rm \\\n        -it \\\n        -e \"DATABASE_NAME=databasename\" \\\n        --mount type=bind,source=/path/to/persistent/data,destination=/db \\\n        --name sqlite \\\n        abecodes/sqlite\n```\n\nThe database name can also be passed as a file with the name in a single line like so:\n\n```bash\ndocker run \\\n        --rm \\\n        -it \\\n        -e \"DATABASE_NAME_FILE=/db/databasename/file\" \\\n        --mount type=bind,source=/path/to/persistent/data,destination=/db \\\n        --name sqlite \\\n        abecodes/sqlite\n```\n\n## Environment Variables\n\n| Env                | Usage                                                                                                     |\n| ------------------ | --------------------------------------------------------------------------------------------------------- |\n| DATABASE_NAME      | Specifies the database file sqlite should use or create if it not exists in /db. Defaults to \"default.db\" |\n| DATABASE_NAME_FILE | Specifies a file containing a single line with the database name                                          |\n\n## Troubleshoots\n\n- make sure you have the correct access rights on the persistent folder\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabecodes%2Fdocker_sqlite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabecodes%2Fdocker_sqlite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabecodes%2Fdocker_sqlite/lists"}