Cannot log into SQL Server in mssql-server-linux container

前端 未结 2 910
孤街浪徒
孤街浪徒 2021-01-24 02:11

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

2条回答
  •  滥情空心
    2021-01-24 02:42

    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.

提交回复
热议问题