{"id":1958,"date":"2018-11-26T00:00:00","date_gmt":"2018-11-26T00:00:00","guid":{"rendered":""},"modified":"2023-05-11T15:35:49","modified_gmt":"2023-05-11T22:35:49","slug":"running-cognitive-service-containers","status":"publish","type":"post","link":"https:\/\/azure.microsoft.com\/en-us\/blog\/running-cognitive-service-containers\/","title":{"rendered":"Running Cognitive Service containers"},"content":{"rendered":"<p>Last week we announced a preview of <a href=\"https:\/\/azure.microsoft.com\/blog\/bringing-ai-to-the-edge\/\" target=\"_blank\" rel=\"noopener\">Docker support for Microsoft Azure Cognitive Services<\/a> with an initial set of containers ranging from <a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/cognitive-services\/computer-vision\/home\" target=\"_blank\" rel=\"noopener\">Computer Vision<\/a> and <a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/cognitive-services\/face\/overview\" target=\"_blank\" rel=\"noopener\">Face<\/a>, to <a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/cognitive-services\/text-analytics\/overview\" target=\"_blank\" rel=\"noopener\">Text Analytics<\/a>. Here we will focus on trying things out, firing up a cognitive service container, and seeing what it can do. For more details on which containers are available and what they offer, read the blog post \u201c<a href=\"https:\/\/azure.microsoft.com\/blog\/getting-started-with-azure-cognitive-services-in-containers\/\">Getting started with these Azure Cognitive Service Containers<\/a>.\u201d<\/p>\n<h2>Installing Docker<\/h2>\n<p>You can run docker in many contexts, and for production environments you will definitely want to look at <a href=\"https:\/\/docs.microsoft.com\/azure\/aks\/\" target=\"_blank\" rel=\"noopener\">Azure Kubernetes Service (AKS)<\/a> or <a href=\"https:\/\/docs.microsoft.com\/azure\/service-fabric\/\" target=\"_blank\" rel=\"noopener\">Azure Service Fabric<\/a>. In subsequent blogs we will dive into doing this in detail, but for now all we want to do is fire up a container on a local dev-box which works great for dev\/test scenarios.<\/p>\n<p>You can run Docker desktop on most dev-boxes, just <a href=\"https:\/\/www.docker.com\/products\/docker-desktop\" target=\"_blank\" rel=\"noopener\">download and follow the instructions<\/a>. Once installed, make sure that Docker is configured to have at least 4G of RAM (one CPU is sufficient). In Docker for Windows it should look something like this:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"Docker settings screenshot\" height=\"443\" src=\"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2018\/11\/7cb8d7ce-8347-4e25-bce1-effaba573afd.webp\" title=\"Docker settings screenshot\" width=\"640\"><\/p>\n<h2>Getting the images<\/h2>\n<p>The Text Analytics images are available directly from Docker Hub as follows:<\/p>\n<ul>\n<li><a href=\"https:\/\/hub.docker.com\/r\/microsoft\/azure-cognitive-services-keyphrase\/\" target=\"_blank\" rel=\"noopener\">Key phrase extraction<\/a> extracts key talking points and highlights in text either from English, German, Spanish, or Japanese.<\/li>\n<li><a href=\"https:\/\/hub.docker.com\/r\/microsoft\/azure-cognitive-services-language\/\" target=\"_blank\" rel=\"noopener\">Language detection<\/a> detects the natural language of text with a total of 120 languages supported.<\/li>\n<li><a href=\"https:\/\/hub.docker.com\/r\/microsoft\/azure-cognitive-services-sentiment\/\" target=\"_blank\" rel=\"noopener\">Sentiment analysis<\/a> detects the level of positive or negative sentiment for input text using a confidence score across a <a href=\"https:\/\/docs.microsoft.com\/azure\/cognitive-services\/text-analytics\/text-analytics-supported-languages\" target=\"_blank\" rel=\"noopener\">variety of languages<\/a>.<\/li>\n<\/ul>\n<p>For the text and Recognize Text images, you need to <a href=\"https:\/\/forms.office.com\/Pages\/ResponsePage.aspx?id=v4j5cvGGr0GRqy180BHbR0XnG25zkIBLkA6GR39U7fRUQVE2MUVDVVJBVlU2Qk5TQTI1MVRSRExUMS4u\" target=\"_blank\" rel=\"noopener\">sign up for the preview to get access<\/a>:<\/p>\n<ul>\n<li><a href=\"https:\/\/forms.office.com\/Pages\/ResponsePage.aspx?id=v4j5cvGGr0GRqy180BHbR0XnG25zkIBLkA6GR39U7fRUQVE2MUVDVVJBVlU2Qk5TQTI1MVRSRExUMS4u\" target=\"_blank\" rel=\"noopener\">Face detection and recognition<\/a> detects human faces in images as well as identifying attributes including face landmarks (nose, eyes, and more), gender, age, and other machine-predicted facial features. In addition to detection, this feature can check to see if two people in an image or images are the same by using a confidence score. It can compare it against a database to see if a similar-looking or identical face already exists, and it can also organize similar faces into groups using shared visual traits.<\/li>\n<li><a href=\"https:\/\/forms.office.com\/Pages\/ResponsePage.aspx?id=v4j5cvGGr0GRqy180BHbR0XnG25zkIBLkA6GR39U7fRUQVE2MUVDVVJBVlU2Qk5TQTI1MVRSRExUMS4u\">Recognize Text<\/a> detects text in an image using optical character recognition (OCR) and extracts the recognized words into a machine-readable character stream.<\/li>\n<\/ul>\n<p>Here we are using the language detection image, but the other images work the same way. To download the image, run <strong>docker pull<\/strong>:<\/p>\n<pre>\r\ndocker pull mcr.microsoft.com\/azure-cognitive-services\/language<\/pre>\n<p>You can also run <strong>docker pull<\/strong> to check for updated images.<\/p>\n<h2>Provisioning a Cognitive Service<\/h2>\n<p>Now you have the image locally, but in order to run a container you need to get a valid API key and billing endpoints, then pass them as command line arguments. First, go to the Azure portal and <a href=\"https:\/\/portal.azure.com\/#blade\/HubsExtension\/Resources\/resourceType\/Microsoft.CognitiveServices%2Faccounts\" target=\"_blank\" rel=\"noopener\">open the Cognitive Services blade<\/a>. If you don\u2019t have a Cognitive Service that matches the container, in this case a Text Analytics service, then select <strong>add<\/strong> and create one. It should look something like this:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"List of Azure Portal Cognitive Services screenshot \" height=\"418\" src=\"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2018\/11\/510934f1-b3a3-4d93-a802-c2ca4e126e7c.webp\" title=\"List of Azure Portal Cognitive Services screenshot \" width=\"640\"><\/p>\n<p>Once you have a Cognitive Service then get the endpoint and API key, you\u2019ll need this to fire up the container:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"Overview Azure Portal Cognitive Service screenshot \" height=\"418\" src=\"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2018\/11\/caaaaad6-a983-464c-bdf4-3081553d4b82.webp\" title=\"Overview Azure Portal Cognitive Service screenshot \" width=\"640\"><\/p>\n<p>The endpoint is strictly used for billing only, no customer data ever flows that way.<\/p>\n<h2>Running a container<\/h2>\n<p>To fire up the container, you use the <strong>docker run<\/strong> command to pass the required <strong>docker <\/strong>options and image arguments:<\/p>\n<pre>\r\ndocker run --rm -it -p 5000:5000 mcr.microsoft.com\/azure-cognitive-services\/language eula=accept apikey=<apikey> billing=<endpoint><\/pre>\n<p>The values for the API key and billing arguments come directly from the Azure portal as seen above. There are <a href=\"https:\/\/docs.docker.com\/engine\/reference\/commandline\/run\/#options\" target=\"_blank\" rel=\"noopener\">lots of Docker options<\/a> that you can use, so we encourage you to check out the documentation. Likewise, there are lot of container arguments that control logging and lots of other features, to learn more <a href=\"https:\/\/go.microsoft.com\/fwlink\/?linkid=2018834&#038;clcid=0x409\" target=\"_blank\" rel=\"noopener\">check out the documentation<\/a>.<\/p>\n<p>If you need to configure an HTTP proxy for making outbound requests then you can do that using these two arguments:<\/p>\n<ul>\n<li>HTTP_PROXY \u2013 the proxy to use, e.g. <strong>https:\/\/proxy:8888<\/strong><\/li>\n<li>HTTP_PROXY_CREDS \u2013 any credentials needed to authenticate against the proxy, e.g. <strong>username:password<\/strong>.<\/li>\n<\/ul>\n<p>When running you should see something like this:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"Container running code screenshot\" height=\"349\" src=\"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2018\/11\/45e1c6a4-d7db-4162-9349-dd43d3a549ed.webp\" title=\"Container running code screenshot\" width=\"640\"><\/p>\n<h2>Trying it out<\/h2>\n<p>In the console window you can see that the container is listening on <strong>https:\/\/localhost:5000<\/strong> so let\u2019s open your favorite browser and point it to that.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"Container Homepage screenshot\" height=\"516\" src=\"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2018\/11\/2a004444-4f3d-4c79-af6a-d9926cc262fe.webp\" title=\"Container Homepage screenshot\" width=\"640\"><\/p>\n<p>Now, select <strong>Service API Description<\/strong> or jump directly to <strong>https:\/\/localhost:5000\/swagger<\/strong>. This will give you a detailed description of the API.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"Container Language Swagger screenshot\" height=\"516\" src=\"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2018\/11\/f5b9854b-3833-46a3-9518-06426b6c01a9.webp\" title=\"Container Language Swagger screenshot\" width=\"640\"><\/p>\n<p>Select<strong> Try it out<\/strong> and then <strong>Execute, <\/strong>you can change the input value as you like.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"Container Language Try it out screenshot\" height=\"516\" src=\"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2018\/11\/d8bb73e9-92f9-471d-a4a2-22f4054735cd.webp\" title=\"Container Language Try it out screenshot\" width=\"640\"><\/p>\n<p>The result will show up further down on the page and should look something like the following image:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"Container Language Try it out result screenshot\" height=\"516\" src=\"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2018\/11\/001a1666-374c-43e2-b52a-cdbb5fd689aa.webp\" title=\"Container Language Try it out result screenshot\" width=\"640\"><\/p>\n<p>You are now up and running! You can play around with the swagger UX and try out various scenarios. In our blogs to follow, we will be looking at additional aspects of consuming the API from an application as well as configuring, deploying, and monitoring containers. Have fun!<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Last week we announced a preview of Docker support for Microsoft Azure Cognitive Services with an initial set of containers ranging from Computer Vision and Face, to Text Analytics. Here we will focus on trying things out, firing up a cognitive service container, and seeing what it can do.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"ms_queue_id":[],"ep_exclude_from_search":false,"_classifai_error":"","_classifai_text_to_speech_error":"","_alt_title":"","footnotes":"","msx_community_cta_settings":[]},"categories":[1454,1556],"tags":[],"audience":[3057,3055,3056],"content-type":[1511],"product":[3164],"tech-community":[],"topic":[],"coauthors":[97],"class_list":["post-1958","post","type-post","status-publish","format-standard","hentry","category-ai-machine-learning","category-mobile","audience-data-professionals","audience-developers","audience-it-implementors","content-type-best-practices","product-microsoft-foundry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Running Cognitive Service containers | Microsoft Azure Blog<\/title>\n<meta name=\"description\" content=\"Last week we announced a preview of Docker support for Microsoft Azure Cognitive Services with an initial set of containers ranging from Computer Vision and Face, to Text Analytics. Here we will focus on trying things out, firing up a cognitive service container, and seeing what it can do.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/azure.microsoft.com\/en-us\/blog\/running-cognitive-service-containers\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Running Cognitive Service containers | Microsoft Azure Blog\" \/>\n<meta property=\"og:description\" content=\"Last week we announced a preview of Docker support for Microsoft Azure Cognitive Services with an initial set of containers ranging from Computer Vision and Face, to Text Analytics. Here we will focus on trying things out, firing up a cognitive service container, and seeing what it can do.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/azure.microsoft.com\/en-us\/blog\/running-cognitive-service-containers\/\" \/>\n<meta property=\"og:site_name\" content=\"Microsoft Azure Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/microsoftazure\" \/>\n<meta property=\"article:published_time\" content=\"2018-11-26T00:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-05-11T22:35:49+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2018\/11\/7cb8d7ce-8347-4e25-bce1-effaba573afd.webp\" \/>\n<meta name=\"author\" content=\"Microsoft Azure\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@azure\" \/>\n<meta name=\"twitter:site\" content=\"@azure\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Microsoft Azure\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/running-cognitive-service-containers\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/running-cognitive-service-containers\/\"},\"author\":[{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/author\/microsoft-azure\/\",\"@type\":\"Person\",\"@name\":\"Microsoft Azure\"}],\"headline\":\"Running Cognitive Service containers\",\"datePublished\":\"2018-11-26T00:00:00+00:00\",\"dateModified\":\"2023-05-11T22:35:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/running-cognitive-service-containers\/\"},\"wordCount\":795,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/running-cognitive-service-containers\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2018\/11\/7cb8d7ce-8347-4e25-bce1-effaba573afd.webp\",\"articleSection\":[\"AI + machine learning\",\"Mobile\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/azure.microsoft.com\/en-us\/blog\/running-cognitive-service-containers\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/running-cognitive-service-containers\/\",\"url\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/running-cognitive-service-containers\/\",\"name\":\"Running Cognitive Service containers | Microsoft Azure Blog\",\"isPartOf\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/running-cognitive-service-containers\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/running-cognitive-service-containers\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2018\/11\/7cb8d7ce-8347-4e25-bce1-effaba573afd.webp\",\"datePublished\":\"2018-11-26T00:00:00+00:00\",\"dateModified\":\"2023-05-11T22:35:49+00:00\",\"description\":\"Last week we announced a preview of Docker support for Microsoft Azure Cognitive Services with an initial set of containers ranging from Computer Vision and Face, to Text Analytics. Here we will focus on trying things out, firing up a cognitive service container, and seeing what it can do.\",\"breadcrumb\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/running-cognitive-service-containers\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/azure.microsoft.com\/en-us\/blog\/running-cognitive-service-containers\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/running-cognitive-service-containers\/#primaryimage\",\"url\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2018\/11\/7cb8d7ce-8347-4e25-bce1-effaba573afd.webp\",\"contentUrl\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2018\/11\/7cb8d7ce-8347-4e25-bce1-effaba573afd.webp\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/running-cognitive-service-containers\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Blog home\",\"item\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"AI + machine learning\",\"item\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/category\/ai-machine-learning\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Running Cognitive Service containers\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/#website\",\"url\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/\",\"name\":\"Microsoft Azure Blog\",\"description\":\"Get the latest Azure news, updates, and announcements from the Azure blog. From product updates to hot topics, hear from the Azure experts.\",\"publisher\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/#organization\",\"name\":\"Microsoft Azure Blog\",\"url\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2024\/06\/microsoft_logo.webp\",\"contentUrl\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2024\/06\/microsoft_logo.webp\",\"width\":512,\"height\":512,\"caption\":\"Microsoft Azure Blog\"},\"image\":{\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/microsoftazure\",\"https:\/\/x.com\/azure\",\"https:\/\/www.instagram.com\/microsoftdeveloper\/\",\"https:\/\/www.linkedin.com\/company\/16188386\",\"https:\/\/www.youtube.com\/user\/windowsazure\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/#\/schema\/person\/c702e5edd662b328b49b7e1180cab117\",\"name\":\"shakir\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/9342c7c05bb16548741bc5cd3a3e3b7ee0c8e746844ad2cc582db5beb5514c6f?s=96&d=mm&r=g7664e653ea371ce16eaf75e9fa8952c4\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/9342c7c05bb16548741bc5cd3a3e3b7ee0c8e746844ad2cc582db5beb5514c6f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/9342c7c05bb16548741bc5cd3a3e3b7ee0c8e746844ad2cc582db5beb5514c6f?s=96&d=mm&r=g\",\"caption\":\"shakir\"},\"sameAs\":[\"https:\/\/azure.microsoft.com\"],\"url\":\"https:\/\/azure.microsoft.com\/en-us\/blog\/author\/shakir\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Running Cognitive Service containers | Microsoft Azure Blog","description":"Last week we announced a preview of Docker support for Microsoft Azure Cognitive Services with an initial set of containers ranging from Computer Vision and Face, to Text Analytics. Here we will focus on trying things out, firing up a cognitive service container, and seeing what it can do.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/azure.microsoft.com\/en-us\/blog\/running-cognitive-service-containers\/","og_locale":"en_US","og_type":"article","og_title":"Running Cognitive Service containers | Microsoft Azure Blog","og_description":"Last week we announced a preview of Docker support for Microsoft Azure Cognitive Services with an initial set of containers ranging from Computer Vision and Face, to Text Analytics. Here we will focus on trying things out, firing up a cognitive service container, and seeing what it can do.","og_url":"https:\/\/azure.microsoft.com\/en-us\/blog\/running-cognitive-service-containers\/","og_site_name":"Microsoft Azure Blog","article_publisher":"https:\/\/www.facebook.com\/microsoftazure","article_published_time":"2018-11-26T00:00:00+00:00","article_modified_time":"2023-05-11T22:35:49+00:00","og_image":[{"url":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2018\/11\/7cb8d7ce-8347-4e25-bce1-effaba573afd.webp","type":"","width":"","height":""}],"author":"Microsoft Azure","twitter_card":"summary_large_image","twitter_creator":"@azure","twitter_site":"@azure","twitter_misc":{"Written by":"Microsoft Azure","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/running-cognitive-service-containers\/#article","isPartOf":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/running-cognitive-service-containers\/"},"author":[{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/author\/microsoft-azure\/","@type":"Person","@name":"Microsoft Azure"}],"headline":"Running Cognitive Service containers","datePublished":"2018-11-26T00:00:00+00:00","dateModified":"2023-05-11T22:35:49+00:00","mainEntityOfPage":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/running-cognitive-service-containers\/"},"wordCount":795,"commentCount":0,"publisher":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/#organization"},"image":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/running-cognitive-service-containers\/#primaryimage"},"thumbnailUrl":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2018\/11\/7cb8d7ce-8347-4e25-bce1-effaba573afd.webp","articleSection":["AI + machine learning","Mobile"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/azure.microsoft.com\/en-us\/blog\/running-cognitive-service-containers\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/running-cognitive-service-containers\/","url":"https:\/\/azure.microsoft.com\/en-us\/blog\/running-cognitive-service-containers\/","name":"Running Cognitive Service containers | Microsoft Azure Blog","isPartOf":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/running-cognitive-service-containers\/#primaryimage"},"image":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/running-cognitive-service-containers\/#primaryimage"},"thumbnailUrl":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2018\/11\/7cb8d7ce-8347-4e25-bce1-effaba573afd.webp","datePublished":"2018-11-26T00:00:00+00:00","dateModified":"2023-05-11T22:35:49+00:00","description":"Last week we announced a preview of Docker support for Microsoft Azure Cognitive Services with an initial set of containers ranging from Computer Vision and Face, to Text Analytics. Here we will focus on trying things out, firing up a cognitive service container, and seeing what it can do.","breadcrumb":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/running-cognitive-service-containers\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/azure.microsoft.com\/en-us\/blog\/running-cognitive-service-containers\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/running-cognitive-service-containers\/#primaryimage","url":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2018\/11\/7cb8d7ce-8347-4e25-bce1-effaba573afd.webp","contentUrl":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2018\/11\/7cb8d7ce-8347-4e25-bce1-effaba573afd.webp"},{"@type":"BreadcrumbList","@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/running-cognitive-service-containers\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog home","item":"https:\/\/azure.microsoft.com\/en-us\/blog\/"},{"@type":"ListItem","position":2,"name":"AI + machine learning","item":"https:\/\/azure.microsoft.com\/en-us\/blog\/category\/ai-machine-learning\/"},{"@type":"ListItem","position":3,"name":"Running Cognitive Service containers"}]},{"@type":"WebSite","@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/#website","url":"https:\/\/azure.microsoft.com\/en-us\/blog\/","name":"Microsoft Azure Blog","description":"Get the latest Azure news, updates, and announcements from the Azure blog. From product updates to hot topics, hear from the Azure experts.","publisher":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/azure.microsoft.com\/en-us\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/#organization","name":"Microsoft Azure Blog","url":"https:\/\/azure.microsoft.com\/en-us\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2024\/06\/microsoft_logo.webp","contentUrl":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-content\/uploads\/2024\/06\/microsoft_logo.webp","width":512,"height":512,"caption":"Microsoft Azure Blog"},"image":{"@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/microsoftazure","https:\/\/x.com\/azure","https:\/\/www.instagram.com\/microsoftdeveloper\/","https:\/\/www.linkedin.com\/company\/16188386","https:\/\/www.youtube.com\/user\/windowsazure"]},{"@type":"Person","@id":"https:\/\/azure.microsoft.com\/en-us\/blog\/#\/schema\/person\/c702e5edd662b328b49b7e1180cab117","name":"shakir","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/9342c7c05bb16548741bc5cd3a3e3b7ee0c8e746844ad2cc582db5beb5514c6f?s=96&d=mm&r=g7664e653ea371ce16eaf75e9fa8952c4","url":"https:\/\/secure.gravatar.com\/avatar\/9342c7c05bb16548741bc5cd3a3e3b7ee0c8e746844ad2cc582db5beb5514c6f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/9342c7c05bb16548741bc5cd3a3e3b7ee0c8e746844ad2cc582db5beb5514c6f?s=96&d=mm&r=g","caption":"shakir"},"sameAs":["https:\/\/azure.microsoft.com"],"url":"https:\/\/azure.microsoft.com\/en-us\/blog\/author\/shakir\/"}]}},"msxcm_display_generated_audio":false,"msxcm_animated_featured_image":null,"distributor_meta":false,"distributor_terms":false,"distributor_media":false,"distributor_original_site_name":"Microsoft Azure Blog","distributor_original_site_url":"https:\/\/azure.microsoft.com\/en-us\/blog","push-errors":false,"_links":{"self":[{"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/posts\/1958","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/comments?post=1958"}],"version-history":[{"count":0,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/posts\/1958\/revisions"}],"wp:attachment":[{"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/media?parent=1958"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/categories?post=1958"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/tags?post=1958"},{"taxonomy":"audience","embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/audience?post=1958"},{"taxonomy":"content-type","embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/content-type?post=1958"},{"taxonomy":"product","embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/product?post=1958"},{"taxonomy":"tech-community","embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/tech-community?post=1958"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/topic?post=1958"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/azure.microsoft.com\/en-us\/blog\/wp-json\/wp\/v2\/coauthors?post=1958"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}