{"id":677,"date":"2019-11-29T20:06:58","date_gmt":"2019-11-29T09:06:58","guid":{"rendered":"https:\/\/spectdata.com\/?p=677"},"modified":"2020-12-15T22:22:42","modified_gmt":"2020-12-15T11:22:42","slug":"deploying-local-web-services-via-azure-machine-learning-services-azureml","status":"publish","type":"post","link":"https:\/\/spectdata.com\/index.php\/2019\/11\/29\/deploying-local-web-services-via-azure-machine-learning-services-azureml\/","title":{"rendered":"Deploying local web services via Azure Machine Learning Services (AzureML)"},"content":{"rendered":"\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"601\" height=\"393\" src=\"https:\/\/spectdata.com\/wp-content\/uploads\/2019\/11\/diagram.png\" alt=\"\" class=\"wp-image-682\" srcset=\"https:\/\/spectdata.com\/wp-content\/uploads\/2019\/11\/diagram.png 601w, https:\/\/spectdata.com\/wp-content\/uploads\/2019\/11\/diagram-300x196.png 300w, https:\/\/spectdata.com\/wp-content\/uploads\/2019\/11\/diagram-294x192.png 294w\" sizes=\"auto, (max-width: 601px) 100vw, 601px\" \/><\/figure>\n\n\n\n<p>Here are the steps on fixing the below error message upon deploying local web services via AzureML.<\/p>\n\n\n\n<p>&#8220;Message: Failed to create Docker client. Is Docker running\/installed?When you deploy locally, we download a dockerfile<br>execute docker build on it, and docker run the built container for you<br>Error: Error while fetching server API version: (5, &#8216;CreateFile&#8217;, &#8216;Access is denied.&#8217;)<br>InnerException None<br>ErrorResponse<br>{<br>&nbsp; &nbsp; &#8220;error&#8221;: {<br>&nbsp; &nbsp; &nbsp; &nbsp; &#8220;message&#8221;: &#8220;Failed to create Docker client. Is Docker running\/installed?\\nWhen you deploy locally, we download a dockerfile\\nexecute docker build on it, and docker run the built container for you\\nError: Error while fetching server API version: (5, &#8216;CreateFile&#8217;, &#8216;Access is denied.&#8217;)&#8221;<br>&nbsp; &nbsp; }<br>}&#8221;<\/p>\n\n\n\n<p>In <strong>Ubuntu 16.04<\/strong><\/p>\n\n\n\n<p>Step 1) Verify that you have docker installed. Type &#8220;docker &#8211;version&#8221; into your command prompt. See that you have the version number printed.<\/p>\n\n\n\n<p>Step 2) Verify that the non-root user has the permissions to run docker.&nbsp;&nbsp;&#8220;docker run hello-world&#8221;<br>If the non-root user don&#8217;t have permissions to run docker, then see if the root user can run hello-world &#8220;sudo&nbsp;docker run hello-world&#8221;<\/p>\n\n\n\n<p>Step 3) Assign the non-root user the permissions to run docker by following the steps here:&nbsp;<a href=\"https:\/\/docs.docker.com\/install\/linux\/linux-postinstall\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/docs.docker.com\/install\/linux\/linux-postinstall\/<\/a><\/p>\n\n\n\n<p>Step 4) Restart the VM.<\/p>\n\n\n\n<p>That&#8217;s it! SpectData is a Silver Microsoft Partner for Data Analytics, specializing in developing AI solutions for our clients.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here are the steps on fixing the below error message upon deploying local web services via AzureML. &#8220;Message: Failed to create Docker client. Is Docker running\/installed?When you deploy locally, we download a dockerfileexecute docker build on it, and docker run the built container for youError: Error while fetching server API version: (5, &#8216;CreateFile&#8217;, &#8216;Access is &hellip; <a href=\"https:\/\/spectdata.com\/index.php\/2019\/11\/29\/deploying-local-web-services-via-azure-machine-learning-services-azureml\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Deploying local web services via Azure Machine Learning Services (AzureML)<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[5],"tags":[],"class_list":["post-677","post","type-post","status-publish","format-standard","hentry","category-tutorials"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9PSm6-aV","_links":{"self":[{"href":"https:\/\/spectdata.com\/index.php\/wp-json\/wp\/v2\/posts\/677","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/spectdata.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/spectdata.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/spectdata.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/spectdata.com\/index.php\/wp-json\/wp\/v2\/comments?post=677"}],"version-history":[{"count":4,"href":"https:\/\/spectdata.com\/index.php\/wp-json\/wp\/v2\/posts\/677\/revisions"}],"predecessor-version":[{"id":691,"href":"https:\/\/spectdata.com\/index.php\/wp-json\/wp\/v2\/posts\/677\/revisions\/691"}],"wp:attachment":[{"href":"https:\/\/spectdata.com\/index.php\/wp-json\/wp\/v2\/media?parent=677"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/spectdata.com\/index.php\/wp-json\/wp\/v2\/categories?post=677"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/spectdata.com\/index.php\/wp-json\/wp\/v2\/tags?post=677"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}