I built SQL Server using Docker ToolBox.
docker pull mcr.microsoft.com/mssql/server:2019-latest
docker run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=<YourStrong@Passw0rd>" -p 1433:1433 --name testdb -h testdb -d mcr.microsoft.com/mssql/server:2019-latest
This should complete the construction, so I checked the status.
docker ps -a
This is the execution result.
CONTAINER ID        IMAGE                                        COMMAND                  CREATED             STATUS                      PORTS                               NAMES
729b8cba68bc        mcr.microsoft.com/mssql/server:2019-latest   "/opt/mssql/bin/perm…"   28 seconds ago      Exited (1) 27 seconds ago                                       testdb
The container has started because the STATUS is Exited (1).
docker start 729b8cba68bc        
However, the STATUS does not change.
Let's check the log.
docker logs 729b8cba68bc
The following log was output.
sqlservr: This program requires a machine with at least 2000 megabytes of memory.
translate.
sqlservr: This program requires a machine with at least 2000MB of memory.
The cause of the error was insufficient memory in the virtual machine. After resolving this issue, STATUS was successful.
CONTAINER ID        IMAGE                                        COMMAND                  CREATED             STATUS                  PORTS                               NAMES
fb1e9681fd36        mcr.microsoft.com/mssql/server:2019-latest   "/opt/mssql/bin/perm…"   3 seconds ago       Up 2 seconds            0.0.0.0:1433->1433/tcp              sql1
 Recommended Posts