docker 镜像:sqlserver安装

Centos7安装docker:

sudo yum -y install docker ##安装docker
systemctl start docker.service ##启动镜像服务

pull镜像:

sudo docker pull microsoft/mssql-server-linux:2017-latest ##下载镜像

启动命令:

sudo docker run -e 'ACCEPT_EULA=Y' -e 'MSSQL_SA_PASSWORD=Ys1402345678!' -p 1401:1433 \
-v /var/opt/mssql:/var/opt/mssql \
--name sql1  \
--privileged=true \
-d microsoft/mssql-server-linux:2017-latest

问题:

sqlservr: This program requires a machine with at least 2000 megabytes of memory
表明需要2G的内存
Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐