{"id":3552,"date":"2017-11-29T08:20:57","date_gmt":"2017-11-29T08:20:57","guid":{"rendered":"https:\/\/cloudkul.com\/blog\/?p=3552"},"modified":"2018-02-22T10:47:15","modified_gmt":"2018-02-22T10:47:15","slug":"magento2-on-docker","status":"publish","type":"post","link":"https:\/\/cloudkul.com\/blog\/magento2-on-docker\/","title":{"rendered":"Launch your Magento 2.2 Store Within Minutes"},"content":{"rendered":"<p>Up until now, the Docker architectures for Magento 2 we have been discussing, were concerned with production servers environments. Goes by its name, production servers are architectured for long term use and are highly complexed. But what if we want temporary mortal servers? Such as we often need Test\/Dev servers to replicate the production environment to test our applications. Also, sometimes we have to test different environments for our applications by changing one or two variables. <strong>So, bottom line is that we do not want to indulge in time taking process of server setups and their termination.<\/strong> Here comes our today&#8217;s topic in play. In this blog, we will discuss to launch Magento 2.2 store within minutes using Docker containers.<\/p>\n<p>&nbsp;<\/p>\n<h2><strong>Docker Container Comes to Rescue:<\/strong><\/h2>\n<p>&nbsp;<\/p>\n<p>We created a<a href=\"https:\/\/hub.docker.com\/r\/webkul\/magento2.2.1\/\"> <strong>Docker Image with Apache2 server, Mysql Server 5.7 and PHP 7.0 for Magento 2.2.1 having Ubuntu 16.04 as OS<\/strong><\/a>. For our instant server setup, we will use this image to run containers on our host. To begin with, <strong>please make sure that you have Docker install on your Ubuntu 16.04<\/strong>. If not please follow,<a href=\"https:\/\/cloudkul.com\/blog\/docker-installation-on-ubuntu-16-04-with-aufs-storage-driver\/\"> docker installation steps<\/a>.<\/p>\n<p>Once our host is ready to use docker, pull the image as<\/p>\n<pre class=\"lang:default decode:true\">docker pull webkul\/magento2.2.1<\/pre>\n<p>It will take some time to download all the layers of the image. Once done, run the docker container as,<\/p>\n<pre class=\"lang:default decode:true \">docker run -ti --name=your_container_name -p host_port:80 webkul\/magento2.2.1<\/pre>\n<p>Assign unique name of the container (your_container_name) and allocate a free port to it host_port).<\/p>\n<p>&nbsp;<\/p>\n<blockquote><p><strong>IMPORTANT:- Please do not use &#8216;-d&#8217; (-d for detached mode) parameter while running the above command as it will create conflicts with our flow. We will detach our container later.<\/strong><\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<p>Now as you launch the container, you will enter the docker container shell and you will see prompts for user inputs for:<\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li><strong>Website Domain\/IP address<\/strong><\/li>\n<li><strong>Your MySQL Password<\/strong><\/li>\n<li><strong>Your Admin password<\/strong><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>After your user inputs, your screen will be something like this:<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2017\/11\/Screenshot-from-2017-11-29-130222.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-3558\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2017\/11\/Screenshot-from-2017-11-29-130222.png\" alt=\"\" width=\"799\" height=\"607\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><strong>You will see your admin URL and admin panel login user.<\/strong><\/p>\n<p>&nbsp;<\/p>\n<blockquote><p><strong>IMPORTANT:- Also, remember to press &#8220;ctrl p ctrl q&#8221; before exiting the container. It is done to put container in detached mode. It is highly recommended to press ctrl p ctrl q, otherwise container will be stopped.<\/strong><\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<p>After entering the detached mode, you will be exited from container. Check the running docker container status as:<\/p>\n<pre class=\"lang:default decode:true\">docker ps<\/pre>\n<p>You will see all the running containers. Now check your Magento 2.2.1 store by browsing to your domain.<\/p>\n<p>Now to stop and terminate the container, run command:<\/p>\n<pre class=\"lang:default decode:true \">docker stop container_id<\/pre>\n<p>To launch another container with same port or different port. Furthermore, you can check the Docker image on docker hub\u00a0<a href=\"https:\/\/hub.docker.com\/r\/webkul\/magento2.2.1\/\">https:\/\/hub.docker.com\/r\/webkul\/magento2.2.1\/.<\/a><\/p>\n<p>Try to explore more and more within Docker containers. If you have issues, share your enthusiasm with us.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Up until now, the Docker architectures for Magento 2 we have been discussing, were concerned <a class=\"text-primary\" title=\"read more\" href=\"https:\/\/cloudkul.com\/blog\/magento2-on-docker\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":7,"featured_media":3565,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[2,35,86,20,21,1],"tags":[5,194,187,23,193],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Launch your Magento 2.2 Store Within Minutes - Cloudkul<\/title>\n<meta name=\"description\" content=\"So, bottom line is that we do not want to indulge in time taking process of server setup and their termination. Here comes our today&#039;s topic in play. In this blog, we will discuss to launch Magento 2.2 store within minutes using Docker containers.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/cloudkul.com\/blog\/magento2-on-docker\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Launch your Magento 2.2 Store Within Minutes - Cloudkul\" \/>\n<meta property=\"og:description\" content=\"So, bottom line is that we do not want to indulge in time taking process of server setup and their termination. Here comes our today&#039;s topic in play. In this blog, we will discuss to launch Magento 2.2 store within minutes using Docker containers.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/cloudkul.com\/blog\/magento2-on-docker\/\" \/>\n<meta property=\"og:site_name\" content=\"Cloudkul\" \/>\n<meta property=\"article:published_time\" content=\"2017-11-29T08:20:57+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-02-22T10:47:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2017\/11\/download-7.png\" \/>\n\t<meta property=\"og:image:width\" content=\"848\" \/>\n\t<meta property=\"og:image:height\" content=\"422\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Alankrit Srivastava\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/cloudkul.com\/blog\/magento2-on-docker\/\",\"url\":\"https:\/\/cloudkul.com\/blog\/magento2-on-docker\/\",\"name\":\"Launch your Magento 2.2 Store Within Minutes - Cloudkul\",\"isPartOf\":{\"@id\":\"https:\/\/cloudkul.com\/blog\/#website\"},\"datePublished\":\"2017-11-29T08:20:57+00:00\",\"dateModified\":\"2018-02-22T10:47:15+00:00\",\"author\":{\"@id\":\"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/fc06bfd7f18d9a606dd94062d205af16\"},\"description\":\"So, bottom line is that we do not want to indulge in time taking process of server setup and their termination. Here comes our today's topic in play. In this blog, we will discuss to launch Magento 2.2 store within minutes using Docker containers.\",\"breadcrumb\":{\"@id\":\"https:\/\/cloudkul.com\/blog\/magento2-on-docker\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/cloudkul.com\/blog\/magento2-on-docker\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/cloudkul.com\/blog\/magento2-on-docker\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/cloudkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Launch your Magento 2.2 Store Within Minutes\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/cloudkul.com\/blog\/#website\",\"url\":\"https:\/\/cloudkul.com\/blog\/\",\"name\":\"Cloudkul\",\"description\":\"Host your eCommerce Store on AWS with Optimized Performance\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/cloudkul.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/fc06bfd7f18d9a606dd94062d205af16\",\"name\":\"Alankrit Srivastava\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/955c3dda2678272c436c5153832e401f?s=96&d=https%3A%2F%2Fs.gravatar.com%2Favatar%2F6148c37469011bc2f8e491ca8f5de495%3Fs%3D80&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/955c3dda2678272c436c5153832e401f?s=96&d=https%3A%2F%2Fs.gravatar.com%2Favatar%2F6148c37469011bc2f8e491ca8f5de495%3Fs%3D80&r=g\",\"caption\":\"Alankrit Srivastava\"},\"description\":\"DevOps Manager at Webkul Software Privated Limited\",\"sameAs\":[\"http:\/\/cloudkul.com\"],\"url\":\"https:\/\/cloudkul.com\/blog\/author\/alankrit-srivastava256\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Launch your Magento 2.2 Store Within Minutes - Cloudkul","description":"So, bottom line is that we do not want to indulge in time taking process of server setup and their termination. Here comes our today's topic in play. In this blog, we will discuss to launch Magento 2.2 store within minutes using Docker containers.","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:\/\/cloudkul.com\/blog\/magento2-on-docker\/","og_locale":"en_US","og_type":"article","og_title":"Launch your Magento 2.2 Store Within Minutes - Cloudkul","og_description":"So, bottom line is that we do not want to indulge in time taking process of server setup and their termination. Here comes our today's topic in play. In this blog, we will discuss to launch Magento 2.2 store within minutes using Docker containers.","og_url":"https:\/\/cloudkul.com\/blog\/magento2-on-docker\/","og_site_name":"Cloudkul","article_published_time":"2017-11-29T08:20:57+00:00","article_modified_time":"2018-02-22T10:47:15+00:00","og_image":[{"width":848,"height":422,"url":"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2017\/11\/download-7.png","type":"image\/png"}],"author":"Alankrit Srivastava","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/cloudkul.com\/blog\/magento2-on-docker\/","url":"https:\/\/cloudkul.com\/blog\/magento2-on-docker\/","name":"Launch your Magento 2.2 Store Within Minutes - Cloudkul","isPartOf":{"@id":"https:\/\/cloudkul.com\/blog\/#website"},"datePublished":"2017-11-29T08:20:57+00:00","dateModified":"2018-02-22T10:47:15+00:00","author":{"@id":"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/fc06bfd7f18d9a606dd94062d205af16"},"description":"So, bottom line is that we do not want to indulge in time taking process of server setup and their termination. Here comes our today's topic in play. In this blog, we will discuss to launch Magento 2.2 store within minutes using Docker containers.","breadcrumb":{"@id":"https:\/\/cloudkul.com\/blog\/magento2-on-docker\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cloudkul.com\/blog\/magento2-on-docker\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/cloudkul.com\/blog\/magento2-on-docker\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/cloudkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Launch your Magento 2.2 Store Within Minutes"}]},{"@type":"WebSite","@id":"https:\/\/cloudkul.com\/blog\/#website","url":"https:\/\/cloudkul.com\/blog\/","name":"Cloudkul","description":"Host your eCommerce Store on AWS with Optimized Performance","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/cloudkul.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/fc06bfd7f18d9a606dd94062d205af16","name":"Alankrit Srivastava","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/955c3dda2678272c436c5153832e401f?s=96&d=https%3A%2F%2Fs.gravatar.com%2Favatar%2F6148c37469011bc2f8e491ca8f5de495%3Fs%3D80&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/955c3dda2678272c436c5153832e401f?s=96&d=https%3A%2F%2Fs.gravatar.com%2Favatar%2F6148c37469011bc2f8e491ca8f5de495%3Fs%3D80&r=g","caption":"Alankrit Srivastava"},"description":"DevOps Manager at Webkul Software Privated Limited","sameAs":["http:\/\/cloudkul.com"],"url":"https:\/\/cloudkul.com\/blog\/author\/alankrit-srivastava256\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/posts\/3552"}],"collection":[{"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/comments?post=3552"}],"version-history":[{"count":18,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/posts\/3552\/revisions"}],"predecessor-version":[{"id":3626,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/posts\/3552\/revisions\/3626"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/media\/3565"}],"wp:attachment":[{"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/media?parent=3552"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/categories?post=3552"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/tags?post=3552"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}