{"id":1244,"date":"2017-06-02T17:00:01","date_gmt":"2017-06-02T17:00:01","guid":{"rendered":"http:\/\/www.testingdocs.com\/questions\/?p=1244"},"modified":"2025-03-24T02:50:11","modified_gmt":"2025-03-24T02:50:11","slug":"what-is-docker","status":"publish","type":"post","link":"https:\/\/www.testingdocs.com\/questions\/what-is-docker\/","title":{"rendered":"What is Docker?"},"content":{"rendered":"<h1>What is Docker?<\/h1>\n<p>Docker is a software container platform. Using Docker we can package software in a file system that contains software code, run-time environment, tools, &amp; libraries that are required to install and run the software. Docker provides a unified framework for all types of applications\/apps. Docker Architecture is shown below.<\/p>\n<h2><strong>What is a Container?<\/strong><\/h2>\n<p>A Container is an abstraction at the application layer that packs code and dependencies together. Multiple containers can run on the same machine and share the OS kernel with other containers. Containers take up less space than VMs and are lightweight as shown below.<\/p>\n<p>We can run Docker on any platforms like<\/p>\n<ul>\n<li><strong>Windows<\/strong><\/li>\n<li><strong> Linux<\/strong><\/li>\n<li><strong>Mac OS, <\/strong><\/li>\n<li><strong>Cloud Platforms, <\/strong><\/li>\n<li><strong>AWS, <\/strong><\/li>\n<li><strong>Azure, etc.<\/strong><\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-20776\" src=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Docker-Containers.png\" alt=\"Docker Containers\" width=\"1634\" height=\"913\" title=\"\" srcset=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Docker-Containers.png 1634w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Docker-Containers-300x168.png 300w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Docker-Containers-1024x572.png 1024w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Docker-Containers-768x429.png 768w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Docker-Containers-1536x858.png 1536w\" sizes=\"auto, (max-width: 1634px) 100vw, 1634px\" \/><\/p>\n<p>Docker containers are based on open standards and run on major operating systems like Linux, Windows, on Virtual Machines, on Cloud, etc. It provides a standard container for monolithic or microservices, Linux or Windows, in-house or cloud.<\/p>\n<p>&nbsp;<\/p>\n<h2><strong>Docker Architecture<\/strong><\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-597\" src=\"http:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Docker-Architecture.jpeg\" alt=\"Docker Architecture\" width=\"1150\" height=\"606\" title=\"\"><\/p>\n<p>An image is a snapshot of the container. We can create a docker image with the <strong>build<\/strong> command. Docker images become Docker containers when they run on the Docker Engine.<\/p>\n<p>We can create a container from a docker image by using the <strong>run<\/strong> command. Containers bundle libraries and settings required to make the software work. This makes lightweight, self-contained, robust systems.<\/p>\n<h2>Example<\/h2>\n<p>These commands are illustrated in this example:<\/p>\n<p>Run Selenium Tests on Docker Container<\/p>\n<ul>\n<li><a href=\"https:\/\/www.testingdocs.com\/run-selenium-test-on-docker-container\/\">https:\/\/www.testingdocs.com\/run-selenium-test-on-docker-container\/<\/a><\/li>\n<\/ul>\n<h2><strong>Docker Editions<\/strong><\/h2>\n<p>Currently, Docker is available in two editions.<\/p>\n<ul>\n<li>Docker Enterprise Edition.<\/li>\n<li>Docker Community Edition.<\/li>\n<\/ul>\n<h2>Docker Tutorials<\/h2>\n<ul>\n<li>https:\/\/www.testingdocs.com\/docker-tutorials\/<\/li>\n<\/ul>\n<p>You can get started with Docker or to learn more visit the documentation website:<\/p>\n<ul>\n<li><strong>https:\/\/docs.docker.com\/<\/strong><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>What is Docker? Docker is a software container platform. Using Docker we can package software in a file system that contains software code, run-time environment, tools, &amp; libraries that are required to install and run the software. Docker provides a unified framework for all types of applications\/apps. Docker Architecture is shown below. What is a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1244","post","type-post","status-publish","format-standard","hentry","category-automation","has-post-title","has-post-date","has-post-category","has-post-tag","has-post-comment","has-post-author",""],"_links":{"self":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/1244","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/comments?post=1244"}],"version-history":[{"count":10,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/1244\/revisions"}],"predecessor-version":[{"id":27180,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/1244\/revisions\/27180"}],"wp:attachment":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/media?parent=1244"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/categories?post=1244"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/tags?post=1244"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}