Docker `docker-entrypoint-initdb` not getting linked

I’m trying to add an script to the docker-entrypoint-initdb.d so I can finish provisioning my DB in a docker container. The script is in a scripts directory in my local directory where the Dockerfile lives. The Dockerfile is simply:

FROM glats/alpine-lamp

The build command works and completes with no errors, and then when I try to run the container it also runs fine, with the linked volume with the init script:

docker run -d --name mydocker -p 8080:80 -it mydocker 
-v ~/Docker/scripts:/docker-entrypoint-initdb.d

However when I log into the running container, I don’t see any docker-entrypoint-initdb.d directory, and obviously the never runs:

/ # ls /
bin       etc       media     proc      sbin      tmp
dev       home      mnt       root      srv       usr  lib       opt       run       sys       var

Does anyone know why the volume isn’t getting mounted?

Source: StackOverflow