{"id":1125,"date":"2017-08-22T09:52:21","date_gmt":"2017-08-22T01:52:21","guid":{"rendered":"http:\/\/jrblog.pentaidea.com\/john\/2017\/08\/22\/docker-%e5%b8%b8%e7%94%a8%e6%8c%87%e4%bb%a4\/"},"modified":"2017-08-22T09:52:21","modified_gmt":"2017-08-22T01:52:21","slug":"docker-%e5%b8%b8%e7%94%a8%e6%8c%87%e4%bb%a4","status":"publish","type":"post","link":"https:\/\/john.pentaidea.com\/?p=1125","title":{"rendered":"Docker \u5e38\u7528\u6307\u4ee4"},"content":{"rendered":"<p><span style=\"font-size: 14px;\"><span style=\"font-size: 14px; font-family: gotham, helvetica, arial, sans-serif; font-weight: bold; text-decoration: underline;\">Env:<\/span><\/span><\/p>\n<ul>\n<li>\n<p><span style=\"font-size: 14px; color: rgb(36, 39, 41); font-family: gotham, helvetica, arial, sans-serif;\">\u5b89\u88dd\u8207\u555f\u52d5<\/span><\/p>\n<p><span style=\"font-size: 14px; color: rgb(36, 39, 41); font-family: gotham, helvetica, arial, sans-serif;\">\u5728\u5b89\u88dd Docker \u524d\u5148\u66f4\u65b0\u4e00\u4e0b YUM Repository:<\/span><\/p>\n<p><span style=\"font-size: 14px; color: rgb(36, 39, 41); font-family: gotham, helvetica, arial, sans-serif;\"># yum -y update<\/span><\/p>\n<p><span style=\"font-size: 14px; color: rgb(36, 39, 41); font-family: gotham, helvetica, arial, sans-serif;\">\u66f4\u65b0 YUM Repository \u5f8c\u53ef\u4ee5\u5b89\u88dd Docker \u53ca\u5176\u76f8\u95dc\u5957\u4ef6:<\/span><\/p>\n<p><span style=\"font-size: 14px; color: rgb(36, 39, 41); font-family: gotham, helvetica, arial, sans-serif;\"># yum -y install docker docker-registry<\/span><\/p>\n<p><span style=\"font-size: 14px; color: rgb(36, 39, 41); font-family: gotham, helvetica, arial, sans-serif;\">\u5b89\u88dd\u597d Docker \u5f8c, \u555f\u52d5 Docker \u53ca\u8a2d\u5b9a Docker \u958b\u6a5f\u81ea\u52d5\u555f\u52d5:<\/span><\/p>\n<p><span style=\"font-size: 14px; color: rgb(36, 39, 41); font-family: gotham, helvetica, arial, sans-serif;\"># systemctl enable docker<\/span><\/p>\n<p><span style=\"font-size: 14px; color: rgb(36, 39, 41); font-family: gotham, helvetica, arial, sans-serif;\"># systemctl start docker<\/span><\/p>\n<p><span style=\"font-size: 14px; color: rgb(36, 39, 41); font-family: gotham, helvetica, arial, sans-serif;\">\u8981\u6aa2\u67e5 Docker \u662f\u5426\u6b63\u78ba\u555f\u52d5, \u53ef\u7528 status \u9078\u9805:<\/span><\/p>\n<p><span style=\"font-size: 14px; color: rgb(36, 39, 41); font-family: gotham, helvetica, arial, sans-serif;\"># systemctl status docker.service<\/span><\/p>\n<\/li>\n<li>\n<p><span style=\"font-size: 11pt; color: rgb(36, 39, 41); font-family: gotham;\">\u767b\u5165 Docker hub to push or commit images<\/span><\/p>\n<p><span style=\"font-size: 11pt; color: rgb(36, 39, 41); font-family: gotham;\"># docker login<\/span><\/p>\n<\/li>\n<li>\n<p><span style=\"font-size: 11pt; color: rgb(36, 39, 41); font-family: gotham;\">Show host IP<\/span><\/p>\n<\/li>\n<\/ul>\n<pre><code>ip addr show docker0 | grep -Po &apos;inet \\K[\\d.]+&apos;\n<\/code><\/pre>\n<ul>\n<li>\n<p><span style=\"font-size: 11pt; color: rgb(36, 39, 41); font-family: gotham;\">Enable \/ Disable Hyper-V<\/span><\/p>\n<\/li>\n<ul>\n<li>\n<p><span style=\"font-size: 11pt;\">Disable -&gt; Docker&apos;ll work and VirtualBox&apos;ll fail.<\/span><\/p>\n<p><span style=\"font-size: 11pt;\">bcdedit \/set hypervisorlaunchtype off<\/span><\/p>\n<\/li>\n<li>\n<p><span style=\"font-size: 14px;\">Enable -&gt;&nbsp;<\/span><span style=\"font-size: 11pt;\">Docker&apos;ll fail and VirtualBox&apos;ll work.<\/span><\/p>\n<p><span style=\"font-size: 11pt;\">bcdedit \/set hypervisorlaunchtype auto<\/span><\/p>\n<\/li>\n<li>\n<p><span style=\"font-size: 11pt;\">Ref: <a href=\"https:\/\/dotblogs.com.tw\/d___s\/2018\/08\/02\/virtualboxruntimeerror\">https:\/\/dotblogs.com.tw\/d___s\/2018\/08\/02\/virtualboxruntimeerror<\/a><\/span><\/p>\n<\/li>\n<\/ul>\n<\/ul>\n<p><span style=\"color: rgb(36, 39, 41); font-weight: bold; text-decoration: underline;\">Build image:<\/span><\/p>\n<ul>\n<li>\n<p><span style=\"font-size: 14px; color: rgb(36, 39, 41); font-family: Consolas;\">Create a file with multiple lines content in Dockerfile<\/span><\/p>\n<\/li>\n<\/ul>\n<pre><code>RUN echo $&apos;[repo] \\n\\\nname&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;= YUM Repository \\n\\\nbaseurl&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;= https:\/\/example.com\/packages\/ \\n\\\nenabled&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;= 1 \\n\\\ngpgcheck&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;= 0&apos; &gt; \/etc\/yum.repos.d\/Repo.repoxyz\n<\/code><\/pre>\n<p><span style=\"color: rgb(36, 39, 41); font-weight: bold; text-decoration: underline;\">Build container:<\/span><\/p>\n<ul>\n<li>\n<p><span style=\"font-size: 14px; color: rgb(36, 39, 41); font-family: Consolas;\">Start and attach to container<\/span><\/p>\n<\/li>\n<\/ul>\n<pre><code>docker start -ai {{container_id}}\n#or start and docker exec&nbsp;\n<\/code><\/pre>\n<ul>\n<li>\n<p><span style=\"font-size: 13px; color: rgb(36, 39, 41); font-family: Consolas;\">Build and expose port to container<\/span><\/p>\n<\/li>\n<li>\n<p><span style=\"font-size: 13px;\"><span style=\"font-size: 13px; color: rgb(36, 39, 41); font-family: Consolas;\">docker run -d -p 8080:80 {image}<\/span><\/span><\/p>\n<\/li>\n<li>\n<p><span style=\"font-size: 13px;\"><span style=\"font-size: 13px; color: rgb(36, 39, 41); font-family: Consolas;\">Build and go into container bash<\/span><\/span><\/p>\n<p><span style=\"font-size: medium; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(245, 245, 245); float: none; color: rgb(0, 0, 0); font-family: monospace; font-style: normal; font-weight: normal;\">docker run -t -i ubuntu:12.04 bash<\/span><\/p>\n<\/li>\n<li>\n<p><span style=\"font-size: 14px;\"><span style=\"font-size: 13px;\"><span style=\"font-size: 13px; color: rgb(36, 39, 41); font-family: Consolas; font-weight: bold;\">Build, expose port and go into container bash<\/span><\/span><\/span><\/p>\n<p><span style=\"font-size: medium; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(245, 245, 245); float: none; color: rgb(0, 0, 0); font-family: monospace; font-style: normal; font-weight: normal;\">docker run -itd -p 8080:80 {image} bash<\/span><span style=\"font-size: 14px; font-family: gotham, helvetica, arial, sans-serif;\">&nbsp;<\/span><\/p>\n<p><span style=\"font-size: 11pt; font-family: gotham;\"># -p host_port:container_port<\/span><\/p>\n<\/li>\n<\/ul>\n<p><span style=\"color: rgb(36, 39, 41); font-weight: bold; text-decoration: underline;\">About Image:<\/span><\/p>\n<ul>\n<li>\n<p><span style=\"font-size: 12pt; font-family: &quot;Helvetica Neue&quot;;\">\u6e05\u9664 &lt;none&gt; images<\/span><\/p>\n<\/li>\n<\/ul>\n<pre><code>docker rmi $(docker images -f &quot;dangling=true&quot; -q)\n<\/code><\/pre>\n<ul>\n<li>\n<p><span style=\"font-size: 16px; font-family: &quot;Helvetica Neue&quot;, Arial, sans;\">\u66f4\u65b0 image<\/span><\/p>\n<\/li>\n<li>\n<p><span style=\"font-size: 16px; font-family: &quot;Helvetica Neue&quot;, Arial, sans;\">docker commit -m &quot;Setup to Jupyter truly&quot; -a &quot;John&quot; {containerId} {image}<\/span><\/p>\n<\/li>\n<li>\n<p><span style=\"font-size: 16px; font-family: &quot;Helvetica Neue&quot;, Arial, sans;\">Push to Repository<\/span><\/p>\n<p><span style=\"font-size: 16px; font-family: &quot;Helvetica Neue&quot;, Arial, sans;\">docker push {image}<\/span><\/p>\n<\/li>\n<li>\n<p><span style=\"font-size: 16px;\"><span style=\"font-size: 14px;\"><span style=\"background-color: rgb(255, 255, 255);\"><span style=\"font-size: 14px; background-color: rgb(255, 255, 255); color: rgb(36, 41, 46); font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;\">Check the files permission in docker image<\/span><\/span><\/span><\/span><\/p>\n<p><span style=\"font-size: 14px; font-family: gotham, helvetica, arial, sans-serif;\">docker run &#8211;rm -ti &#8211;entrypoint sh {image} -c &quot;ls -alF \/usr\/local\/bin\/&quot;<\/span><\/p>\n<\/li>\n<\/ul>\n<p><span style=\"color: rgb(36, 39, 41); font-weight: bold; text-decoration: underline;\">About Container:<\/span><\/p>\n<ul>\n<li>\n<p><span style=\"font-size: 11pt; color: rgb(36, 39, 41); font-family: gotham;\">Remove dead container<\/span><\/p>\n<\/li>\n<ul>\n<li>\n<p><span style=\"font-size: 11pt; color: rgb(36, 39, 41); font-family: gotham;\">Linux<\/span><\/p>\n<\/li>\n<\/ul>\n<\/ul>\n<pre><code>sudo rm -rf \/var\/lib\/docker\/&lt;storage_driver&gt;\/{CONTAINER ID}\/\n<\/code><\/pre>\n<ul>\n<ul>\n<li>\n<p><span style=\"font-size: 11pt; color: rgb(36, 39, 41); font-family: gotham;\">Windows<\/span><\/p>\n<\/li>\n<\/ul>\n<\/ul>\n<pre><code>del D:\\ProgramData\\docker\\containers\\{CONTAINER ID}\ndel D:\\ProgramData\\docker\\windowsfilter\\{CONTAINER ID}\n<\/code><\/pre>\n<ul>\n<li>\n<p><span style=\"font-size: 11pt; color: rgb(36, 39, 41); font-family: gotham;\">Check screen log output<\/span><\/p>\n<\/li>\n<\/ul>\n<pre><code>docker logs -f &lt;CONTAINER&gt; --tail {lineNumber}\n<\/code><\/pre>\n<ul>\n<li>\n<p><span style=\"font-size: inherit; color: rgb(36, 39, 41); font-family: gotham, helvetica, arial, sans-serif;\">List all the containers<\/span><\/p>\n<p><span style=\"font-size: 13px; background-color: rgb(239, 240, 241); border: 0px; margin: 0px; padding: 1px 5px; vertical-align: baseline; color: rgb(36, 39, 41); font-family: Consolas, Menlo, Monaco, &quot;Lucida Console&quot;, &quot;Liberation Mono&quot;, &quot;DejaVu Sans Mono&quot;, &quot;Bitstream Vera Sans Mono&quot;, &quot;Courier New&quot;, monospace, sans-serif;\">docker&nbsp;ps&nbsp;-aq<\/span><\/p>\n<\/li>\n<li>\n<p><span style=\"font-size: inherit; color: rgb(36, 39, 41); font-family: gotham, helvetica, arial, sans-serif;\">Stop all running containers<\/span><\/p>\n<p><span style=\"font-size: 13px; background-color: rgb(239, 240, 241); border: 0px; margin: 0px; padding: 1px 5px; vertical-align: baseline; color: rgb(36, 39, 41); font-family: Consolas, Menlo, Monaco, &quot;Lucida Console&quot;, &quot;Liberation Mono&quot;, &quot;DejaVu Sans Mono&quot;, &quot;Bitstream Vera Sans Mono&quot;, &quot;Courier New&quot;, monospace, sans-serif;\">docker&nbsp;stop&nbsp;$(docker&nbsp;ps&nbsp;-aq)<\/span><\/p>\n<\/li>\n<li>\n<p><span style=\"font-size: inherit; color: rgb(36, 39, 41); font-family: gotham, helvetica, arial, sans-serif;\">Remove all containers<\/span><\/p>\n<p><span style=\"font-size: 13px; background-color: rgb(239, 240, 241); border: 0px; margin: 0px; padding: 1px 5px; vertical-align: baseline; color: rgb(36, 39, 41); font-family: Consolas, Menlo, Monaco, &quot;Lucida Console&quot;, &quot;Liberation Mono&quot;, &quot;DejaVu Sans Mono&quot;, &quot;Bitstream Vera Sans Mono&quot;, &quot;Courier New&quot;, monospace, sans-serif;\">docker&nbsp;rm&nbsp;$(docker&nbsp;ps&nbsp;-aq)<\/span><\/p>\n<\/li>\n<li>\n<p><span style=\"font-size: inherit; color: rgb(36, 39, 41); font-family: gotham, helvetica, arial, sans-serif;\">Remove all images<\/span><\/p>\n<p><span style=\"font-size: 13px; background-color: rgb(239, 240, 241); border: 0px; margin: 0px; padding: 1px 5px; vertical-align: baseline; color: rgb(36, 39, 41); font-family: Consolas, Menlo, Monaco, &quot;Lucida Console&quot;, &quot;Liberation Mono&quot;, &quot;DejaVu Sans Mono&quot;, &quot;Bitstream Vera Sans Mono&quot;, &quot;Courier New&quot;, monospace, sans-serif;\">docker&nbsp;rmi&nbsp;$(docker&nbsp;images&nbsp;-q)<\/span><\/p>\n<\/li>\n<li>\n<p><span style=\"font-size: 14px; font-family: gotham, helvetica, arial, sans-serif;\">Copy file from host to container<\/span><\/p>\n<p><span style=\"font-size: 13px; background-color: rgb(239, 240, 241); border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit; color: rgb(36, 39, 41); font-family: Consolas, Menlo, Monaco, &quot;Lucida Console&quot;, &quot;Liberation Mono&quot;, &quot;DejaVu Sans Mono&quot;, &quot;Bitstream Vera Sans Mono&quot;, &quot;Courier New&quot;, monospace, sans-serif; font-style: normal; font-weight: normal;\">docker cp foo.txt mycontainer:\/foo.txt<\/span><\/p>\n<p><span style=\"font-size: 14px; font-family: gotham, helvetica, arial, sans-serif;\">from container to host<\/span><\/p>\n<p><span style=\"font-size: 13px; background-color: rgb(239, 240, 241); border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; color: rgb(36, 39, 41); font-family: Consolas, Menlo, Monaco, &quot;Lucida Console&quot;, &quot;Liberation Mono&quot;, &quot;DejaVu Sans Mono&quot;, &quot;Bitstream Vera Sans Mono&quot;, &quot;Courier New&quot;, monospace, sans-serif; font-style: normal; font-weight: normal;\">docker&nbsp;cp&nbsp;mycontainer:\/foo.txt&nbsp;foo.txt<\/span><\/p>\n<\/li>\n<li>\n<p><span style=\"font-size: 14px; font-family: gotham, helvetica, arial, sans-serif; font-weight: bold;\">\u9032\u5165 Running Container bash<\/span><\/p>\n<p><span style=\"font-size: 14px; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; color: rgb(36, 41, 46); font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;; font-style: normal; font-weight: normal;\">docker exec -i -t &lt;CONTAINER_ID&gt; bash<\/span><\/p>\n<p><span style=\"font-size: 14px; color: rgb(36, 41, 46); font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;\">docker exec -i -t &lt;CONTAINER_ID&gt; sh<\/span><\/p>\n<\/li>\n<li>\n<p><span style=\"font-size: 11pt; color: rgb(36, 41, 46);\">\u9032\u5165 Stopped(Exited) container bash<\/span><\/p>\n<\/li>\n<\/ul>\n<pre><code>docker images&nbsp; &nbsp;# Find the {imageId} of exited container\ndocker run -it --entrypoint=sh&nbsp;{imageId}\n\n# not verify?&nbsp;\ndocker start -ai {CONTAINER_ID} bash\n<\/code><\/pre>\n<ul>\n<li>\n<p><span style=\"font-size: 14px; color: rgb(36, 41, 46); font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;;\">\u4fee\u6539\u521d\u59cb command \u4e26 start new container<\/span><\/p>\n<p><span style=\"font-size: 11pt; color: rgb(36, 41, 46); font-family: -apple-system;\">docker run -ti &#8211;entrypoint=sh &lt;IMAGE_NAME&gt;<\/span><\/p>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>\u5b89\u88dd\u8207\u555f\u52d5<\/p>\n<\/div>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4],"tags":[12,16],"class_list":["post-1125","post","type-post","status-publish","format-standard","hentry","category-tech","tag-docker","tag-linux"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Docker \u5e38\u7528\u6307\u4ee4 - John&#039;s Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/john.pentaidea.com\/?p=1125\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Docker \u5e38\u7528\u6307\u4ee4 - John&#039;s Blog\" \/>\n<meta property=\"og:description\" content=\"\u5b89\u88dd\u8207\u555f\u52d5\" \/>\n<meta property=\"og:url\" content=\"https:\/\/john.pentaidea.com\/?p=1125\" \/>\n<meta property=\"og:site_name\" content=\"John&#039;s Blog\" \/>\n<meta property=\"article:published_time\" content=\"2017-08-22T01:52:21+00:00\" \/>\n<meta name=\"author\" content=\"jj\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"jj\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/john.pentaidea.com\/?p=1125\",\"url\":\"https:\/\/john.pentaidea.com\/?p=1125\",\"name\":\"Docker \u5e38\u7528\u6307\u4ee4 - John&#039;s Blog\",\"isPartOf\":{\"@id\":\"https:\/\/john.pentaidea.com\/#website\"},\"datePublished\":\"2017-08-22T01:52:21+00:00\",\"dateModified\":\"2017-08-22T01:52:21+00:00\",\"author\":{\"@id\":\"https:\/\/john.pentaidea.com\/#\/schema\/person\/3d2e5980a7d3023e93b91d668d2a4a4f\"},\"breadcrumb\":{\"@id\":\"https:\/\/john.pentaidea.com\/?p=1125#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/john.pentaidea.com\/?p=1125\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/john.pentaidea.com\/?p=1125#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/john.pentaidea.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Docker \u5e38\u7528\u6307\u4ee4\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/john.pentaidea.com\/#website\",\"url\":\"https:\/\/john.pentaidea.com\/\",\"name\":\"John's Blog\",\"description\":\"\u4e16\u754c\u56e0\u601d\u7dd2\u800c\u8907\u96dc, \u4eba\u56e0\u5922\u60f3\u800c\u5049\u5927\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/john.pentaidea.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/john.pentaidea.com\/#\/schema\/person\/3d2e5980a7d3023e93b91d668d2a4a4f\",\"name\":\"jj\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/john.pentaidea.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/a685414cd92056415bc823b5cfbbf95a44a98df88d8c040b18613724c1c0724b?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/a685414cd92056415bc823b5cfbbf95a44a98df88d8c040b18613724c1c0724b?s=96&d=mm&r=g\",\"caption\":\"jj\"},\"sameAs\":[\"https:\/\/john.pentaidea.com\"],\"url\":\"https:\/\/john.pentaidea.com\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Docker \u5e38\u7528\u6307\u4ee4 - John&#039;s Blog","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:\/\/john.pentaidea.com\/?p=1125","og_locale":"en_US","og_type":"article","og_title":"Docker \u5e38\u7528\u6307\u4ee4 - John&#039;s Blog","og_description":"\u5b89\u88dd\u8207\u555f\u52d5","og_url":"https:\/\/john.pentaidea.com\/?p=1125","og_site_name":"John&#039;s Blog","article_published_time":"2017-08-22T01:52:21+00:00","author":"jj","twitter_card":"summary_large_image","twitter_misc":{"Written by":"jj","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/john.pentaidea.com\/?p=1125","url":"https:\/\/john.pentaidea.com\/?p=1125","name":"Docker \u5e38\u7528\u6307\u4ee4 - John&#039;s Blog","isPartOf":{"@id":"https:\/\/john.pentaidea.com\/#website"},"datePublished":"2017-08-22T01:52:21+00:00","dateModified":"2017-08-22T01:52:21+00:00","author":{"@id":"https:\/\/john.pentaidea.com\/#\/schema\/person\/3d2e5980a7d3023e93b91d668d2a4a4f"},"breadcrumb":{"@id":"https:\/\/john.pentaidea.com\/?p=1125#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/john.pentaidea.com\/?p=1125"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/john.pentaidea.com\/?p=1125#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/john.pentaidea.com\/"},{"@type":"ListItem","position":2,"name":"Docker \u5e38\u7528\u6307\u4ee4"}]},{"@type":"WebSite","@id":"https:\/\/john.pentaidea.com\/#website","url":"https:\/\/john.pentaidea.com\/","name":"John's Blog","description":"\u4e16\u754c\u56e0\u601d\u7dd2\u800c\u8907\u96dc, \u4eba\u56e0\u5922\u60f3\u800c\u5049\u5927","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/john.pentaidea.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/john.pentaidea.com\/#\/schema\/person\/3d2e5980a7d3023e93b91d668d2a4a4f","name":"jj","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/john.pentaidea.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/a685414cd92056415bc823b5cfbbf95a44a98df88d8c040b18613724c1c0724b?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a685414cd92056415bc823b5cfbbf95a44a98df88d8c040b18613724c1c0724b?s=96&d=mm&r=g","caption":"jj"},"sameAs":["https:\/\/john.pentaidea.com"],"url":"https:\/\/john.pentaidea.com\/?author=1"}]}},"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/john.pentaidea.com\/index.php?rest_route=\/wp\/v2\/posts\/1125","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/john.pentaidea.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/john.pentaidea.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/john.pentaidea.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/john.pentaidea.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1125"}],"version-history":[{"count":0,"href":"https:\/\/john.pentaidea.com\/index.php?rest_route=\/wp\/v2\/posts\/1125\/revisions"}],"wp:attachment":[{"href":"https:\/\/john.pentaidea.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1125"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/john.pentaidea.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1125"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/john.pentaidea.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1125"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}