Run SQL Server with Docker ToolBox

I built SQL Server using Docker ToolBox.

SQL Server construction

Pull the image and run it.
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

Impressions

I stumbled in a place I didn't understand. .. ..

Recommended Posts

Run SQL Server with Docker ToolBox
Run Pico with docker
Run Payara with Docker
Run TAO Core with Docker
Run Rails whenever with docker
Run lambda with custom docker image
Make JupyterLab run anywhere with docker
How to share files with Docker Toolbox
Proxy server with squid using docker image
Run Ubuntu + ROS with Docker on Mac
How to run Blazor (C #) with Docker
Run JSP Hello World with Tomcat on Docker
Create jupyter notebook with Docker and run ruby
Run old Vivado with Docker guest OS as CentOS 7.4
Launch MariaDB with Docker
Rails deploy with Docker
Explode Docker with WSL2
Run Android instrumentation unit tests with GitLab CI + Docker
Use Puphpeteer with Docker
[ARM64] Docker server monitoring with New Relic on Docker on RasPi4
Operate Emby with Docker
Try WildFly with Docker
Use ngrok with Docker
[Docker] Connection with MySQL
Php settings with Docker
Run Mosquitto with Docker and try WebSocket communication with MQTT
Getting Started with Docker
[Docker + Rails] How to deal with Rails server startup failure
Disposable PHP with Docker
Install Composer with Docker
Run phpunit on Docker
Write DiscordBot to Spreadsheets Write in Ruby and run with Docker
Pytorch execution environment with Docker
What is docker run -it?
Use GDAL with Python with Docker
Run batch with docker-compose with Java batch
Run VS Code on Docker
Deploy with EC2 / Docker / Laravel
Install Docker on Ubuntu Server 20.04
Docker management with VS Code
Run openvpn on Docker (windows)
Set up GitLab with docker
Run Tensorflow with THETA V
Run LIFF with Spring Boot
Decomposing the Docker run command. .. ..
Get started with DynamoDB with docker
Docker autostart settings with wsl2
[Docker] Rails 5.2 environment construction with docker
Spring Boot starting with Docker
Build docker environment with WSL
Version control CocoaPods with Docker
Web application built with docker (1)
I tried BIND with Docker
React environment construction with Docker
Build DynamoDB local with Docker
Run Java VM with WebAssembly
[Docker] Use whenever with Docker + Rails
Using PlantUml with Honkit [Docker]
I tried to build the environment of PlantUML Server with Docker
Run logstash with Docker and try uploading data to Elastic Cloud
How to run a job with docker login in AWS batch