skip to Main Content
docker run -d — name MySQLServer -e ‘ACCEPT_EULA=Y’ -e ‘SA_PASSWORD=your_password123’ -p 1433:1433 mcr.microsoft.com/azure-sql-edge

I ran the above command in my terminal and it returns me the "invalid reference format".
I am running docker on an M1 chip Mac, which I am not sure if it affects anything.

How can I resolve this issue?

2

Answers


  1. In the following command:

    docker run -d — name MySQLServer -e ‘ACCEPT_EULA=Y’ -e ‘SA_PASSWORD=your_password123’ -p 1433:1433 mcr.microsoft.com/azure-sql-edge
    

    Docker is trying to run the image (the long hyphen before name). The --name option seems to have been altered by a text formatting tool somewhere. The correct command is:

    docker run -d --name mysqlserver -e ‘ACCEPT_EULA=Y’ -e ‘SA_PASSWORD=your_password123’ -p 1433:1433 mcr.microsoft.com/azure-sql-edge
    
    Login or Signup to reply.
  2. For me this command workded:
    docker run -d --name mssql -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=password' -p 1401:1433 mcr.microsoft.com/azure-sql-edge

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search