mssql-docker icon indicating copy to clipboard operation
mssql-docker copied to clipboard

standard_init_linux.go:211: exec user process caused "exec format error"

Open changemenemo opened this issue 5 years ago • 4 comments

sudo docker run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=<YourStrong@Passw0rd>" \
>    -p 1433:1433 --name sql1 \
>    -d mcr.microsoft.com/mssql/server:2017-latest

sudo docker logs sql1 ``standard_init_linux.go:211: exec user process caused "exec format error"isn't it supposed to run maybe on rasp pi4?

changemenemo avatar Apr 27 '20 08:04 changemenemo

sudo docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=<YourStrong@Passw0rd>"' -p 1433:1433 -d mcr.microsoft.com/mssql/server:2017-latest standard_init_linux.go:211: exec user process caused "exec format error" I received same error on rasp pi 3b. I think SQL server just can't run on rasp pi or similar architecture (?).

Updated: I believe that this issue is probably due to the fact that the image isn't compiled for ARM.

mcimam avatar May 17 '20 14:05 mcimam

I got this error too. when I deploy by use Kubernetes on pi4 arm64 8GB

image

deployment.yaml

apiVersion: apps/v1
kind: ReplicaSet
metadata:
  name: mssqldb
  labels:
    app: mssqldb
spec:
  replicas: 1
  selector:
    matchLabels:
      app: mssqldb
  template:
    metadata:
      labels:
        app: mssqldb
    spec:
      containers:
      - name: mssqldb
        image: mcr.microsoft.com/mssql/server:2019-latest  
        resources:
          requests:
            memory: "4Gi"
            cpu: 1
        env:
          - name: ACCEPT_EULA
            value: "Y"
          - name: SA_PASSWORD
            value: "P@ssw0rd!"
        ports:
        - containerPort: 1433
        volumeMounts:
          - mountPath: /var/opt/mssql
            name: mssqldb
      volumes:
      - name: mssqldb
        persistentVolumeClaim:
          claimName: pvc-mssqldb

VatthanachaiW avatar Sep 13 '21 16:09 VatthanachaiW

standard_init_linux.go:228: exec user process caused: exec format error

==

you can not run mssql contaienr on arm64 ( raspberry pi or jetson nano)

dpkg --print-architecture

the-real-colton-neary avatar Aug 24 '22 04:08 the-real-colton-neary

Try sql-server-edge for raspberry pi usage.. It doesn't have all the features of full-blown SQL Server, but should be usable in practice.

https://docs.microsoft.com/en-us/azure/azure-sql-edge/disconnected-deployment

Aside: You may also want to consider alternatives if you must have more advanced features on RPi. YMMV.

tracker1 avatar Sep 14 '22 22:09 tracker1

Thank you very much

VatthanachaiW avatar Oct 06 '22 00:10 VatthanachaiW