Skip to content

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

License

Notifications You must be signed in to change notification settings

bet01/mssql-docker-tmpfs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mssql-docker-tmpfs

Hack to run the mssql-docker containers with a tmpfs 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 tmpfs. Look at microsoft/mssql-docker#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

Other references:

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Dockerfile 54.1%
  • C 45.9%