Public | Automated Build

Last pushed: 4 months ago
Short Description
SQL Server image for testing purposes.
Full Description

SQL Server docker image by eXo Platform

This is a SQL Server image to easily build an SQL Server environment for test purposes with a dedicated database and user.
It's build on top of the official Microsoft mssql container : https://hub.docker.com/r/microsoft/mssql-server-linux/

Running

docker run -d -e SA_PASSWORD=<passord> -e SQLSERVER_DATABASE=<db name> -e SQLSERVER_USER=<user> -e SQLSERVER_PASSWORD=<password> -p <local port>:1433 exoplatform/sqlserver:ctp2-1-1

:warning: For Docker4Mac and Docker4Windows users, your docker instance must have at least 3192Mo of memory allocated.

Supported environment variables :

  • SA_PASSWORD : The password of the SA user
  • SQLSERVER_DATABASE : the database name to user
  • SQLSERVER_USER : the username to use. It will be the owner of the database
  • SQLSERVER_PASSWORD : the password of the username

:warning: All your password must match the MSSQL rules : at least 8 chars, with lower, upper and digits.

Ports :

  • 1433 : The database port

Volumes

The data is persisted on the directory /var/opt/mssql.
Add the following option to persist your data on volume :

-v <your volume>:/var/opt/mssql
Docker Pull Command
Owner
exoplatform
Source Repository

Comments (4)
daviduser
3 months ago

The container stop 4 seconds after run.

isaquexavier
10 months ago

Hello everyone!

@roopamroy did you get any solution for the problem you was facing?

Thanks

hfdend
a year ago

Trying to register the VirtualBox kernel modules using DKMSError! Your kernel headers for kernel 3.10.0-327.el7.x86_64 cannot be found.
Please install the linux-headers-3.10.0-327.el7.x86_64 package,
or use the --kernelsourcedir option to tell DKMS where it's located
...failed!
(Failed, trying without DKMS)
Recompiling VirtualBox kernel modules ...failed!
(Look at /var/log/vbox-install.log to find out what went wrong)
Starting VirtualBox kernel modules ...failed!
(Running VirtualBox in a Xen environment is not supported)
VirtualBox is complaining that the kernel module is not loaded. Please
run VBoxManage --version or open the VirtualBox GUI to see the error
message which should contain instructions on how to fix this error.
Database started

roopamroy
a year ago

I tried in two different machines and i keep getting this error

Stopping VirtualBox kernel modules ...done.
Uninstalling old VirtualBox DKMS kernel modules ...done.
Error! Your kernel headers for kernel 3.13.0-85-generic cannot be found.
Please install the linux-headers-3.13.0-85-generic package,
or use the --kernelsourcedir option to tell DKMS where it's located
Trying to register the VirtualBox kernel modules using DKMS ...failed!
  (Failed, trying without DKMS)
Recompiling VirtualBox kernel modules ...failed!
  (Look at /var/log/vbox-install.log to find out what went wrong)
Starting VirtualBox kernel modules ...failed!
  (modprobe vboxdrv failed. Please use 'dmesg' to find out why)
VirtualBox is complaining that the kernel module is not loaded. Please
run `VBoxManage --version` or open the VirtualBox GUI to see the error
message which should contain instructions on how to fix this error.
Database started