3

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?

D M
  • 5,769
  • 4
  • 12
  • 27
Paul_Harrison
  • 31
  • 1
  • 2

2 Answers2

1

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

docker run -d --name MySQLServer -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=yourpassword' -p 1433:1433 mcr.microsoft.com/azure-sql-edge
Andromeda
  • 1,205
  • 1
  • 14
  • 21
-1

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 the name parameter, you need to use two hyphens (--) and instead of fancy single quotes () around the ACCEPT_EULA and SA_PASSWORD environment variables, you need to use apostrophes (').

Here's a version with the replacements made:

docker run -d --name MySQLServer -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=your_password123' -p 1433:1433 mcr.microsoft.com/azure-sql-edge
D M
  • 5,769
  • 4
  • 12
  • 27