{"id":12449,"date":"2018-12-11T01:05:26","date_gmt":"2018-12-10T18:05:26","guid":{"rendered":"https:\/\/huongdanjava.com\/?p=12449"},"modified":"2021-07-01T06:31:55","modified_gmt":"2021-06-30T23:31:55","slug":"create-a-new-image-using-dockerfile-in-docker","status":"publish","type":"post","link":"https:\/\/huongdanjava.com\/create-a-new-image-using-dockerfile-in-docker.html","title":{"rendered":"Create a new Image using Dockerfile in Docker"},"content":{"rendered":"<p>I have shown you how to create an Image from a Container using the commit command in the Docker in <a href=\"https:\/\/huongdanjava.com\/create-new-image-using-commit-command-in-docker.html\" target=\"_blank\" rel=\"noopener noreferrer\">the previous tutorial<\/a>. This tutorial will guide you another way without using Container, which is to use a Dockerfile to create a new Image in the Docker. Let&#8217;s see how this works!<\/p>\n<p>A Dockerfile is a text file that contains a set of commands to create an image in the Docker. Some of the most commonly used commands in the Dockerfile are listed below:<\/p>\n<ul>\n<li>FROM &lt;base_image&gt;:&lt;version&gt;: This is a required statement in any Dockerfile. This is used to declare the base Image that we will be building our Image.<\/li>\n<li>MAINTAINER &lt;author_name&gt;: This statement is used to declare the author of the image, we can declare it or not.<\/li>\n<li>RUN &lt;command&gt;: We use this command to run a command to install the necessary tools for our Image.<\/li>\n<li>CMD &lt;command&gt;: In a Dockerfile, we have only one CMD command, which determines the execution rights of the statements when we create new images.<\/li>\n<li>ADD &lt;src&gt; &lt;dest&gt;: This command is used to copy a local or remote file (declared in &lt;src&gt;) to a location on the container (declared by dest).<\/li>\n<li>ENV &lt;variable_name&gt;: defines the environment variable in the container.<\/li>\n<li>ENTRYPOINT &lt;command&gt;: Defines the default command, which will be run when the container is running.<\/li>\n<li>VOLUME &lt;directory_name&gt;: This is used to link a folder in the Container with the folder on the machine on which we are running Docker.<\/li>\n<li>EXPOSE &lt;port_number&gt;: used to expose a certain port in the container to the outside.<\/li>\n<\/ul>\n<p>Some more commands, you can refer to <a href=\"https:\/\/docs.docker.com\/engine\/reference\/builder\/\" target=\"_blank\" rel=\"noopener noreferrer\">here<\/a>.<\/p>\n<p>OK, now I will create an example.<\/p>\n<p>I will use Dockerfile to create an image of Ubuntu 16.04 with Git tool installed.<\/p>\n<p>The steps will be as follows:<\/p>\n<p>Firstly, I will create a new Dockerfile file and then open the file.<\/p>\n<p>Then I will add the following lines to my Dockerfile:<\/p>\n<pre class=\"lang:sh decode:true\">FROM ubuntu:16.04<\/pre>\n<p>Here, I have declared using an Image of Ubuntu with version 16.04.<\/p>\n<p>Then I will run the command:<\/p>\n<pre class=\"lang:sh decode:true\">RUN apt-get update<\/pre>\n<p>to update the repositories of this Ubuntu.<\/p>\n<p>Finally, I will declare the Git installation command with the -y option to skip the confirmation step to install Git.<\/p>\n<pre class=\"lang:sh decode:true\">RUN apt-get install -y git<\/pre>\n<p>The entire contents of the Dockerfile file are as follows:<\/p>\n<pre class=\"lang:sh decode:true\">FROM ubuntu:16.04\r\nRUN apt-get update\r\nRUN apt-get install -y git<\/pre>\n<p>Now, we will use this file to create a new image.<\/p>\n<p>The structure of this statement is as follows:<\/p>\n<pre class=\"lang:sh decode:true\">sudo docker build -t &lt;version_name&gt; &lt;folder_containing_Dockerfile&gt;<\/pre>\n<p>Assuming that I am in the directory containing the Dockerfile file, in my example, the new Dockerfile Image command will look like this:<\/p>\n<pre class=\"lang:sh decode:true \">sudo docker build -t ubuntu_16_04_git .<\/pre>\n<p>Result:<\/p>\n<p>Run the apt-get update statement<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-12459 size-full\" src=\"https:\/\/huongdanjava.com\/wp-content\/uploads\/2018\/12\/create-a-new-image-using-dockerfile-in-docker-1.png\" alt=\"Create a new Image using Dockerfile in Docker\" width=\"700\" height=\"421\" \/><\/p>\n<p>Install Git<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-12460 size-full\" src=\"https:\/\/huongdanjava.com\/wp-content\/uploads\/2018\/12\/create-a-new-image-using-dockerfile-in-docker-2.png\" alt=\"Create a new Image using Dockerfile in Docker\" width=\"700\" height=\"415\" \/><\/p>\n<p>Finish<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-12461 size-full\" src=\"https:\/\/huongdanjava.com\/wp-content\/uploads\/2018\/12\/create-a-new-image-using-dockerfile-in-docker-3.png\" alt=\"Create a new Image using Dockerfile in Docker\" width=\"700\" height=\"416\" \/><\/p>\n<p>Check the Images in the Registry of the Docker, you will see the image we just created:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-12462 size-full\" src=\"https:\/\/huongdanjava.com\/wp-content\/uploads\/2018\/12\/create-a-new-image-using-dockerfile-in-docker-4.png\" alt=\"Create a new Image using Dockerfile in Docker\" width=\"700\" height=\"120\" \/><\/p>\n\n\n<div class=\"kk-star-ratings kksr-auto kksr-align-right kksr-valign-bottom\"\n    data-payload='{&quot;align&quot;:&quot;right&quot;,&quot;id&quot;:&quot;12449&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;0&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;0&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;4&quot;,&quot;greet&quot;:&quot;&quot;,&quot;legend&quot;:&quot;0\\\/5 - (0 votes)&quot;,&quot;size&quot;:&quot;24&quot;,&quot;title&quot;:&quot;Create a new Image using Dockerfile in Docker&quot;,&quot;width&quot;:&quot;0&quot;,&quot;_legend&quot;:&quot;{score}\\\/{best} - ({count} {votes})&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}'>\n            \n<div class=\"kksr-stars\">\n    \n<div class=\"kksr-stars-inactive\">\n            <div class=\"kksr-star\" data-star=\"1\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"2\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"3\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"4\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"5\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n    \n<div class=\"kksr-stars-active\" style=\"width: 0px;\">\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n                \n\n<div class=\"kksr-legend\" style=\"font-size: 19.2px;\">\n            <span class=\"kksr-muted\"><\/span>\n    <\/div>\n    <\/div>\n","protected":false},"excerpt":{"rendered":"<p>I have shown you how to create an Image from a Container using the commit command in the Docker in the previous tutorial. This tutorial will guide you another way without using Container, which is to use a Dockerfile to create a new Image in&hellip; <a href=\"https:\/\/huongdanjava.com\/create-a-new-image-using-dockerfile-in-docker.html\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":1930,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[415],"tags":[],"class_list":["post-12449","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-docker-en","clearfix"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Create a new Image using Dockerfile in Docker - Huong Dan Java<\/title>\n<meta name=\"description\" content=\"In this tutorial, I will guide you all how to create a new Image using Dockerfile in Docker.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/huongdanjava.com\/create-a-new-image-using-dockerfile-in-docker.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Create a new Image using Dockerfile in Docker - Huong Dan Java\" \/>\n<meta property=\"og:description\" content=\"In this tutorial, I will guide you all how to create a new Image using Dockerfile in Docker.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/huongdanjava.com\/create-a-new-image-using-dockerfile-in-docker.html\" \/>\n<meta property=\"og:site_name\" content=\"Huong Dan Java\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/nhkhanh2406\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/nhkhanh2406\" \/>\n<meta property=\"article:published_time\" content=\"2018-12-10T18:05:26+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-06-30T23:31:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/huongdanjava.com\/wp-content\/uploads\/2016\/11\/docker.png\" \/>\n\t<meta property=\"og:image:width\" content=\"348\" \/>\n\t<meta property=\"og:image:height\" content=\"293\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Khanh Nguyen\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/KhanhNguyenJ\" \/>\n<meta name=\"twitter:site\" content=\"@KhanhNguyenJ\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Khanh Nguyen\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/create-a-new-image-using-dockerfile-in-docker.html#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/create-a-new-image-using-dockerfile-in-docker.html\"},\"author\":{\"name\":\"Khanh Nguyen\",\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/#\\\/schema\\\/person\\\/dc859d7f8cbea3b593e6738de9cbb82d\"},\"headline\":\"Create a new Image using Dockerfile in Docker\",\"datePublished\":\"2018-12-10T18:05:26+00:00\",\"dateModified\":\"2021-06-30T23:31:55+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/create-a-new-image-using-dockerfile-in-docker.html\"},\"wordCount\":476,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/#\\\/schema\\\/person\\\/dc859d7f8cbea3b593e6738de9cbb82d\"},\"image\":{\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/create-a-new-image-using-dockerfile-in-docker.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/huongdanjava.com\\\/wp-content\\\/uploads\\\/2016\\\/11\\\/docker.png\",\"articleSection\":[\"Docker\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/huongdanjava.com\\\/create-a-new-image-using-dockerfile-in-docker.html#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/create-a-new-image-using-dockerfile-in-docker.html\",\"url\":\"https:\\\/\\\/huongdanjava.com\\\/create-a-new-image-using-dockerfile-in-docker.html\",\"name\":\"Create a new Image using Dockerfile in Docker - Huong Dan Java\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/create-a-new-image-using-dockerfile-in-docker.html#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/create-a-new-image-using-dockerfile-in-docker.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/huongdanjava.com\\\/wp-content\\\/uploads\\\/2016\\\/11\\\/docker.png\",\"datePublished\":\"2018-12-10T18:05:26+00:00\",\"dateModified\":\"2021-06-30T23:31:55+00:00\",\"description\":\"In this tutorial, I will guide you all how to create a new Image using Dockerfile in Docker.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/create-a-new-image-using-dockerfile-in-docker.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/huongdanjava.com\\\/create-a-new-image-using-dockerfile-in-docker.html\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/create-a-new-image-using-dockerfile-in-docker.html#primaryimage\",\"url\":\"https:\\\/\\\/huongdanjava.com\\\/wp-content\\\/uploads\\\/2016\\\/11\\\/docker.png\",\"contentUrl\":\"https:\\\/\\\/huongdanjava.com\\\/wp-content\\\/uploads\\\/2016\\\/11\\\/docker.png\",\"width\":348,\"height\":293},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/create-a-new-image-using-dockerfile-in-docker.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/huongdanjava.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create a new Image using Dockerfile in Docker\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/#website\",\"url\":\"https:\\\/\\\/huongdanjava.com\\\/\",\"name\":\"Huong Dan Java\",\"description\":\"Java development tutorials\",\"publisher\":{\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/#\\\/schema\\\/person\\\/dc859d7f8cbea3b593e6738de9cbb82d\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/huongdanjava.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/#\\\/schema\\\/person\\\/dc859d7f8cbea3b593e6738de9cbb82d\",\"name\":\"Khanh Nguyen\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/CC6FAC58-D227-4DD8-93D1-6D6A795577E3_1_201_a.jpeg\",\"url\":\"https:\\\/\\\/huongdanjava.com\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/CC6FAC58-D227-4DD8-93D1-6D6A795577E3_1_201_a.jpeg\",\"contentUrl\":\"https:\\\/\\\/huongdanjava.com\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/CC6FAC58-D227-4DD8-93D1-6D6A795577E3_1_201_a.jpeg\",\"width\":1267,\"height\":1517,\"caption\":\"Khanh Nguyen\"},\"logo\":{\"@id\":\"https:\\\/\\\/huongdanjava.com\\\/wp-content\\\/uploads\\\/2021\\\/07\\\/CC6FAC58-D227-4DD8-93D1-6D6A795577E3_1_201_a.jpeg\"},\"description\":\"I love Java and everything related to Java.\",\"sameAs\":[\"https:\\\/\\\/huongdanjava.com\",\"https:\\\/\\\/www.facebook.com\\\/nhkhanh2406\",\"https:\\\/\\\/x.com\\\/https:\\\/\\\/twitter.com\\\/KhanhNguyenJ\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Create a new Image using Dockerfile in Docker - Huong Dan Java","description":"In this tutorial, I will guide you all how to create a new Image using Dockerfile in Docker.","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:\/\/huongdanjava.com\/create-a-new-image-using-dockerfile-in-docker.html","og_locale":"en_US","og_type":"article","og_title":"Create a new Image using Dockerfile in Docker - Huong Dan Java","og_description":"In this tutorial, I will guide you all how to create a new Image using Dockerfile in Docker.","og_url":"https:\/\/huongdanjava.com\/create-a-new-image-using-dockerfile-in-docker.html","og_site_name":"Huong Dan Java","article_publisher":"https:\/\/www.facebook.com\/nhkhanh2406","article_author":"https:\/\/www.facebook.com\/nhkhanh2406","article_published_time":"2018-12-10T18:05:26+00:00","article_modified_time":"2021-06-30T23:31:55+00:00","og_image":[{"width":348,"height":293,"url":"https:\/\/huongdanjava.com\/wp-content\/uploads\/2016\/11\/docker.png","type":"image\/png"}],"author":"Khanh Nguyen","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/KhanhNguyenJ","twitter_site":"@KhanhNguyenJ","twitter_misc":{"Written by":"Khanh Nguyen","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/huongdanjava.com\/create-a-new-image-using-dockerfile-in-docker.html#article","isPartOf":{"@id":"https:\/\/huongdanjava.com\/create-a-new-image-using-dockerfile-in-docker.html"},"author":{"name":"Khanh Nguyen","@id":"https:\/\/huongdanjava.com\/#\/schema\/person\/dc859d7f8cbea3b593e6738de9cbb82d"},"headline":"Create a new Image using Dockerfile in Docker","datePublished":"2018-12-10T18:05:26+00:00","dateModified":"2021-06-30T23:31:55+00:00","mainEntityOfPage":{"@id":"https:\/\/huongdanjava.com\/create-a-new-image-using-dockerfile-in-docker.html"},"wordCount":476,"commentCount":0,"publisher":{"@id":"https:\/\/huongdanjava.com\/#\/schema\/person\/dc859d7f8cbea3b593e6738de9cbb82d"},"image":{"@id":"https:\/\/huongdanjava.com\/create-a-new-image-using-dockerfile-in-docker.html#primaryimage"},"thumbnailUrl":"https:\/\/huongdanjava.com\/wp-content\/uploads\/2016\/11\/docker.png","articleSection":["Docker"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/huongdanjava.com\/create-a-new-image-using-dockerfile-in-docker.html#respond"]}]},{"@type":"WebPage","@id":"https:\/\/huongdanjava.com\/create-a-new-image-using-dockerfile-in-docker.html","url":"https:\/\/huongdanjava.com\/create-a-new-image-using-dockerfile-in-docker.html","name":"Create a new Image using Dockerfile in Docker - Huong Dan Java","isPartOf":{"@id":"https:\/\/huongdanjava.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/huongdanjava.com\/create-a-new-image-using-dockerfile-in-docker.html#primaryimage"},"image":{"@id":"https:\/\/huongdanjava.com\/create-a-new-image-using-dockerfile-in-docker.html#primaryimage"},"thumbnailUrl":"https:\/\/huongdanjava.com\/wp-content\/uploads\/2016\/11\/docker.png","datePublished":"2018-12-10T18:05:26+00:00","dateModified":"2021-06-30T23:31:55+00:00","description":"In this tutorial, I will guide you all how to create a new Image using Dockerfile in Docker.","breadcrumb":{"@id":"https:\/\/huongdanjava.com\/create-a-new-image-using-dockerfile-in-docker.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/huongdanjava.com\/create-a-new-image-using-dockerfile-in-docker.html"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/huongdanjava.com\/create-a-new-image-using-dockerfile-in-docker.html#primaryimage","url":"https:\/\/huongdanjava.com\/wp-content\/uploads\/2016\/11\/docker.png","contentUrl":"https:\/\/huongdanjava.com\/wp-content\/uploads\/2016\/11\/docker.png","width":348,"height":293},{"@type":"BreadcrumbList","@id":"https:\/\/huongdanjava.com\/create-a-new-image-using-dockerfile-in-docker.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/huongdanjava.com\/"},{"@type":"ListItem","position":2,"name":"Create a new Image using Dockerfile in Docker"}]},{"@type":"WebSite","@id":"https:\/\/huongdanjava.com\/#website","url":"https:\/\/huongdanjava.com\/","name":"Huong Dan Java","description":"Java development tutorials","publisher":{"@id":"https:\/\/huongdanjava.com\/#\/schema\/person\/dc859d7f8cbea3b593e6738de9cbb82d"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/huongdanjava.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/huongdanjava.com\/#\/schema\/person\/dc859d7f8cbea3b593e6738de9cbb82d","name":"Khanh Nguyen","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/huongdanjava.com\/wp-content\/uploads\/2021\/07\/CC6FAC58-D227-4DD8-93D1-6D6A795577E3_1_201_a.jpeg","url":"https:\/\/huongdanjava.com\/wp-content\/uploads\/2021\/07\/CC6FAC58-D227-4DD8-93D1-6D6A795577E3_1_201_a.jpeg","contentUrl":"https:\/\/huongdanjava.com\/wp-content\/uploads\/2021\/07\/CC6FAC58-D227-4DD8-93D1-6D6A795577E3_1_201_a.jpeg","width":1267,"height":1517,"caption":"Khanh Nguyen"},"logo":{"@id":"https:\/\/huongdanjava.com\/wp-content\/uploads\/2021\/07\/CC6FAC58-D227-4DD8-93D1-6D6A795577E3_1_201_a.jpeg"},"description":"I love Java and everything related to Java.","sameAs":["https:\/\/huongdanjava.com","https:\/\/www.facebook.com\/nhkhanh2406","https:\/\/x.com\/https:\/\/twitter.com\/KhanhNguyenJ"]}]}},"_links":{"self":[{"href":"https:\/\/huongdanjava.com\/wp-json\/wp\/v2\/posts\/12449","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/huongdanjava.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/huongdanjava.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/huongdanjava.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/huongdanjava.com\/wp-json\/wp\/v2\/comments?post=12449"}],"version-history":[{"count":7,"href":"https:\/\/huongdanjava.com\/wp-json\/wp\/v2\/posts\/12449\/revisions"}],"predecessor-version":[{"id":16848,"href":"https:\/\/huongdanjava.com\/wp-json\/wp\/v2\/posts\/12449\/revisions\/16848"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/huongdanjava.com\/wp-json\/wp\/v2\/media\/1930"}],"wp:attachment":[{"href":"https:\/\/huongdanjava.com\/wp-json\/wp\/v2\/media?parent=12449"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/huongdanjava.com\/wp-json\/wp\/v2\/categories?post=12449"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/huongdanjava.com\/wp-json\/wp\/v2\/tags?post=12449"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}