{"id":37525952,"url":"https://github.com/cezarlamann/docker-mssql-autorestore","last_synced_at":"2026-01-16T08:23:22.814Z","repository":{"id":144165432,"uuid":"285662494","full_name":"cezarlamann/docker-mssql-autorestore","owner":"cezarlamann","description":"A Docker image that automagically restores .BAK and .BACPAC files for testing purposes","archived":false,"fork":false,"pushed_at":"2024-11-28T21:22:15.000Z","size":28,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-28T22:22:06.198Z","etag":null,"topics":["database","database-development","database-testing","mssql","mssql-ser","software-development","software-testing","sql-ser"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/cezarlamann/mssql_ar","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cezarlamann.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2020-08-06T20:12:26.000Z","updated_at":"2024-11-28T22:03:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"4086202f-094c-4b1a-8f1d-42f4f65ed4f2","html_url":"https://github.com/cezarlamann/docker-mssql-autorestore","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cezarlamann/docker-mssql-autorestore","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cezarlamann%2Fdocker-mssql-autorestore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cezarlamann%2Fdocker-mssql-autorestore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cezarlamann%2Fdocker-mssql-autorestore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cezarlamann%2Fdocker-mssql-autorestore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cezarlamann","download_url":"https://codeload.github.com/cezarlamann/docker-mssql-autorestore/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cezarlamann%2Fdocker-mssql-autorestore/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28478047,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T06:30:42.265Z","status":"ssl_error","status_checked_at":"2026-01-16T06:30:16.248Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["database","database-development","database-testing","mssql","mssql-ser","software-development","software-testing","sql-ser"],"created_at":"2026-01-16T08:23:22.219Z","updated_at":"2026-01-16T08:23:22.806Z","avatar_url":"https://github.com/cezarlamann.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Microsoft SQL Server With Automatic Restore of BAK and BACPAC Files | cezarlamann/mssql_ar\n### docker-mssql-autorestore (mssql_ar)\nMicrosoft SQL Server Docker images with automatic restoration of .bak and .bacpac files for testing purposes\n\n**https://hub.docker.com/r/cezarlamann/mssql_ar**\n\n## How to use it\n\n`docker run -e \"ACCEPT_EULA=Y\" -e \"SA_PASSWORD=\u003cMySaf3stPassw0rd\u003e\" -p 1433:1433 -v \"/path/to/folder/with/backupfiles:/var/opt/mssql/backups\" -v \"\u003cvolume_here\u003e:/var/opt/mssql/data\" -d --name \u003ccontainer name\u003e cezarlamann/mssql_ar:latest`\n\n### Example: How do I run on Linux, personally?\n\n``docker run -e \"ACCEPT_EULA=Y\" -e \"SA_PASSWORD=MySaf3stPassw0rd#\" -p 1433:1433 -v \"`pwd`/dbs:/var/opt/mssql/backups\" -v \"sql1volume:/var/opt/mssql/data\" -d --name sql1 cezarlamann/mssql_ar:latest``\n\nTo see what the container is doing when starting up, hit `docker logs -f \u003ccontainer_name\u003e`, like `docker logs -f sql1` if you use the example above.\n\n### More SQL Server Variables:\nRefer to [this page](https://docs.microsoft.com/en-us/sql/linux/sql-server-linux-configure-environment-variables?view=sql-server-ver15).\n\n## Notes\n- The `autorestorescript.sh` will detect if you already have the database you want to work with, so, if it is already restored, it will not restore it again. If you would like the database to be restored on each run, just remove the `-v \"sql1volume:/var/opt/mssql/data\"` part from the `run` command.\n- If you'd like to restore new images apart from the ones you already have restored, just copy your new backup file into the folder you set up for backup files, stop the container with `docker stop \u003ccontainer name\u003e` and start it again with `docker start \u003ccontainer name\u003e`\n- **The mssql service running in containers from this image is currently running as `root` by default and is provided AS-IS due to a volume mounting bug on Linux. It has been created with development and testing contexts in mind. I'm not responsible for anything that can happen if you use it in production scenarios. Be warned :)**\n\n## Build instructions\n\n- Run the `build.sh` script inside of the `mssql-autorestore` folder.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcezarlamann%2Fdocker-mssql-autorestore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcezarlamann%2Fdocker-mssql-autorestore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcezarlamann%2Fdocker-mssql-autorestore/lists"}