I’ve been trying to install Azure SQL Edge using Docker on my M1 MacBook using this guide and I’m not able to run 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
Because of this error:
docker: invalid reference format
How can I resolve this?
2
Answers
If you copy the command directly from the blog post you linked, it won’t work because some of the symbols have been replaced.
Instead of an em-dash (
—
) in front of thename
parameter, you need to use two hyphens (--
) and instead of fancy single quotes (‘
) around theACCEPT_EULA
andSA_PASSWORD
environment variables, you need to use apostrophes ('
).Here’s a version with the replacements made:
I had the exact same issue and used the same documentation. I was able to fix it by typing the command instead of copy pasting