Hack to run the mssql-docker containers with a zfs filesystem mounted as data dir
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Dockerfile
LICENSE
README.md
docker-compose.yml
nodirect_open.c
nodirect_open.so

README.md

mssql-docker-zfs

Hack to run the mssql-docker containers with a zfs filesystem mounted as data dir

This is a way to mask the O_DIRECT flag of the open function, which the mssql-server uses and which causes the mssql container to not run on zfs. Look at https://github.com/Microsoft/mssql-docker/issues/13 for more details. Thanks to @Mic92 for the hints and code.

To use it, just copy the nodirect_open.so to your container or link it like shown in the docker-compose.yml and add it to the LD_PRELOAD environment variable (also like shown in the docker-compose.yml). Alternatively just use the Dockerfile to create your own mssql-container which already contains the hack.

NO WARRANTY WHATSOEVER