Reputation: 31
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?
Upvotes: 3
Views: 10667
Reputation: 21
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
Upvotes: 1
Reputation: 7189
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
Upvotes: -1