Reputation: 466
This is the command I execute but the container just stop after few seconds: docker run -it -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=dockermssql" -p 1433:1433 -v sqlvlm:/var/opt/mssql --name sql1 -d microsoft/mssql-server-linux
Upvotes: 7
Views: 4285
Reputation: 166765
Your password (e.g. dockermssql
) doesn't meet the complexity requirements. So try adding a non-alphanumeric characters such as exclamation point (!
).
To check for errors, run: docker logs ID
(where ID
is container ID from docker ps
), or run container without -d
.
Upvotes: 13
Reputation: 53
Remove detatched mode "-d" so it runs in "foreground" mode, this should then give you your stdout, stderror etc to your terminal and you may see some errors logged which can hopefully point you in the right direction.
Upvotes: 0