Skip to content

Extension of the microsoft/mssql-server-linux docker image to support initdb scripts.

License

Notifications You must be signed in to change notification settings

shanegenschaw/mssql-server-linux

Repository files navigation

genschsa/mssql-server-linux

This is the git repo of the custom genschsa/mssql-server-linux Docker image.

This image is an extension of the official microsoft/mssql-server-linux Docker image

It adds functionality to initialize a fresh instance. When a container is started for the first time, it will execute any files with extensions .sh or .sql that are found in /docker-entrypoint-initdb.d. Files will be executed in alphabetical order. You can easily populate your SQL Server services by mounting scripts into that directory and provide custom images with contributed data.

Running this image

docker run -p 1433:1433 --name mssql -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=Strong(!)Password' -v $PWD/initdb.d:/docker-entrypoint-initdb.d -d genschsa/mssql-server-linux

Additional information:

  • Linux-based mssql-docker git repo
  • Running SQL Server on Linux on top of an Ubuntu 16.04 base image.
  • Note that the version 2017-CU3 currently (as of Feb. 15, 2018) has a bug described here: microsoft/mssql-docker#136
  • Make sure that the .sh files have UNIX-style (LF) line endings. Depending on your platform and Git configuration, Git may change them to Windows-style (CR+LF). In this case, the container won't start, and you may see a non-informative error message like:
standard_init_linux.go:195: exec user process caused "no such file or directory"'.

About

Extension of the microsoft/mssql-server-linux docker image to support initdb scripts.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •