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
In the following command:
Docker is trying to run the
—
image (the long hyphen beforename
). The--name
option seems to have been altered by a text formatting tool somewhere. The correct command is: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