I am begrudgingly performing the soul-draining task of trying to use Microsoft SQL Server in a docker container, and am using the mssql-server-linux box provided by Microsoft. B
Does ./startup.sh
have the execute permission?
You can find out if you run docker-compose up
, instead of docker-compose up -d
.
Here's an idea (inspired by this answer):
Set the execute permission before you build the image:
chmod +x ./startup.sh
docker build .
Docker will retain the execute permission on ./startup.sh
when it copies the file.