MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.26k stars 21.43k forks source link

Docker run command doesn't work #73356

Closed pmillart closed 3 years ago

pmillart commented 3 years ago

Bonjour,

When we try to run the command docker run as explain in the documentation the container version 3.2-preview.2 does'nt start. The variables are interpreted as command line. We have an error message like [cmd] Eula=accept exited 126 One workaround is to set the variables in a file and call them with a --env-file


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

RohitMungi-MSFT commented 3 years ago

@pmillart Thanks for reporting this. I have run the command and it seems to run as expected. Is it possible to provide the complete command you used to report the same to our team?

pmillart commented 3 years ago

@RohitMungi-MSFT please find the run command: docker run --rm -it -p 5000:5000 --memory 16g --cpus 2 mcr.microsoft.com/azure-cognitive-services/vision/read:3.2-preview.2 Eula="accept" Billing=${ENDPOINT_URI} ApiKey=${API_KEY} The same command was OK with the version read:2.0-preview

RohitMungi-MSFT commented 3 years ago

@pmillart Thanks. I am able to replicate the error, I am checking this internally with the team for more inputs. Thanks.

TFR258 commented 3 years ago

Hello @pmillart,

Thank you for reporting this issue. This is an issue we are aware of. We are in the process of releasing a hot fix. These new images should be available from the ACR by next Friday latest.

In the meantime, to work around this issue, you can leverage the following command: docker run --rm -it -p 5000:5000 --memory 16g --cpus 2 --env Eula="accept" --env Billing=${ENDPOINT_URI} --env ApiKey=${API_KEY} mcr.microsoft.com/azure-cognitive-services/vision/read:3.2-preview.2

Please let me know if you have any questions.

Thanks, Tom

pmillart commented 3 years ago

Hello @TFR258 Just to let you know that it works now. I don't know if i have to close this issue, but thank you for all :)

Patrick

YutongTie-MSFT commented 3 years ago

Thanks for the confirmation. We will now proceed to close this thread. If there are further questions regarding this matter, please respond here and @YutongTie-MSFT and we will gladly continue the discussion.