Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ymasaoka/docker-mssql
https://github.com/ymasaoka/docker-mssql
database docker linux sql-server
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ymasaoka/docker-mssql
- Owner: ymasaoka
- License: mit
- Created: 2019-08-12T06:19:17.000Z (over 5 years ago)
- Default Branch: 2022-latest-RHEL
- Last Pushed: 2023-05-09T18:24:55.000Z (over 1 year ago)
- Last Synced: 2024-11-18T05:35:28.826Z (2 months ago)
- Topics: database, docker, linux, sql-server
- Size: 12.7 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# docker-mssql
Install Microsoft SQL Server on Docker by Docker Compose.
Official Microsoft repository for SQL Server in Docker resources is [here](https://github.com/Microsoft/mssql-docker).# How to use
1. **Clone this repository** to a directory of your choice.
1. Move to the **docker-mssql** directory.
1. Execute the following command to start the container.```bash
docker compose up -d
```1. Run the following command to confirm that the container has started.
```bash
docker compose ps
```# Login to SQL Server
You can use **SSMS** (SQL Server Managemet Studio) or **ADS** (Azure Data Studio) to log in to the Docker container.
You can also use `docker` command to log-in to the container and run **sqlcmd**.
```bash
docker exec -it "bash"
/opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P ""
```> You can check the container ID with the `docker ps` command.
For more information on connecting to SQL Server on Docker using sqlcmd, see [here](https://docs.microsoft.com/en-us/sql/linux/quickstart-install-connect-docker?view=sql-server-ver15&pivots=cs1-bash).