A Docker image based on the official Microsoft SQL Server 2022 image with Full-Text Search capabilities enabled.
docker pull timdoddcool/mssql-fulltext
docker run -e "ACCEPT_EULA=Y" \
-e "MSSQL_SA_PASSWORD=YourStrong@Passw0rd" \
-p 1433:1433 \
--name mssql-fts \
-d timdoddcool/mssql-fulltext
docker exec -it mssql-fts /opt/mssql-tools/bin/sqlcmd \
-S localhost -U SA -P "YourStrong@Passw0rd"
| Variable | Required | Default | Description |
|---|---|---|---|
ACCEPT_EULA | Yes | - | Must be set to Y to accept the End User License Agreement |
MSSQL_SA_PASSWORD | Yes | - | Strong password for the SA account (min 8 chars, uppercase, lowercase, digits, symbols) |
MSSQL_PID | No | Developer | Product ID or Edition (Developer, Express, Standard, Enterprise, or product key) |
SELECT SERVERPROPERTY('IsFullTextInstalled');
-- Returns 1 if Full-Text Search is installed
CREATE FULLTEXT CATALOG MyCatalog;
-- Assuming you have a table with a primary key
CREATE FULLTEXT INDEX ON MyTable(MyTextColumn)
KEY INDEX PK_MyTable
ON MyCatalog;
-- Contains search
SELECT * FROM MyTable
WHERE CONTAINS(MyTextColumn, 'search term');
-- Freetext search
SELECT * FROM MyTable
WHERE FREETEXT(MyTextColumn, 'search phrase');
version: '3.8'
services:
mssql:
image: timdoddcool/mssql-fulltext
container_name: mssql-fts
environment:
- ACCEPT_EULA=Y
- MSSQL_SA_PASSWORD=YourStrong@Passw0rd
- MSSQL_PID=Developer
ports:
- "1433:1433"
volumes:
- mssql_data:/var/opt/mssql
restart: unless-stopped
volumes:
mssql_data:
If you want to build the image yourself:
git clone <your-repo-url>
cd mssql-fulltext
docker build -t mssql-fulltext .
/var/opt/mssql: SQL Server data directory (recommended for persistent storage)This image contains Microsoft SQL Server software which is subject to Microsoft's licensing terms. By using this image, you agree to Microsoft's End User License Agreement.
For SQL Server specific issues, refer to the official Microsoft SQL Server documentation.
For issues with this Docker image, please open an issue in the repository.
Content type
Image
Digest
sha256:72a6f7b8d…
Size
1.3 GB
Last updated
about 1 year ago
docker pull timdoddcool/mssql-fulltext