{"id":3136,"date":"2016-07-07T12:23:10","date_gmt":"2016-07-07T11:23:10","guid":{"rendered":"http:\/\/www.gamlor.info\/wordpress\/?p=3136"},"modified":"2021-03-11T09:42:57","modified_gmt":"2021-03-11T08:42:57","slug":"joyents-triton-joyent%ec%9d%98-%ed%8a%b8%eb%a6%ac%ed%86%a4-%ed%8a%b8%eb%a6%ac%ed%84%b4-%ec%8b%9c%ec%9e%91-%ed%95%98%ec%9e%90","status":"publish","type":"post","link":"https:\/\/www.gamlor.info\/wordpress\/2016\/07\/joyents-triton-joyent%ec%9d%98-%ed%8a%b8%eb%a6%ac%ed%86%a4-%ed%8a%b8%eb%a6%ac%ed%84%b4-%ec%8b%9c%ec%9e%91-%ed%95%98%ec%9e%90\/","title":{"rendered":"Joyent\uc758 Triton (Joyent\uc758 \ud2b8\ub9ac\ud1a4): \uc2dc\uc791 \ud558\uc790!"},"content":{"rendered":"<p>(Here&#8217;s the <a href=\"https:\/\/www.gamlor.info\/wordpress\/2016\/07\/joyents-triton-lets-start\/\">English version<\/a>, easier to understand)<br \/>\nDocker \uc544\uc0c8\uc694? \ub9de\uc544, \uc694\uc998\uc5d0 \uc5ec\ub7ec\ubd84\ub4e4\uc774 Docker \uc54c\uace0 \uc0ac\uc6a9\ud558\uace0 \uc788\ub098\uc694. \uadfc\ub370 Docker\uc758 \ucee8\ud14c\uc774\ub108\uac00 \uc5b4\ub5bb\uac8c \ubc30\ud3ec\ud558\uc138\uc694? \ub2f9\uc2e0\ub294 \uba87\uac8c Linux-\uc11c\ubc84 \uc788\uc5b4\uace0 Docker \ucee8\ud14c\uc774\ub108\ub97c \uc11c\ubc84\uc5d0 \uc5c5\ub85c\ub4dc\ud574\uc694. \uc11c\ubc84 \ub9ce\uc544\uace0 \ucee8\ud14c\uc774\ub108 \ub9ce\uc73c\uba74 \uc5b4\ub290 \ucee8\ud14c\uc774\ub108\uac00 \uc5b4\ub514\uc5d0\uc11c \uc5c5\ub85c\ub4dc\ud574\uc694? \ub2f9\uc2dc\ub294 VM\uc758 Linux-\uc11c\ubc84 \uc0ac\uc6a9\ud558\uc138\uc694? \uadf8\ub808\uc11c \ub2f9\uc2e0\uc758 \uc571\ub294 \uc6b4\uc601\uccb4\uc81c\ub97c 2\uac8c \uc0ac\uc6a9\ud558\uace0 Docker \ucee8\ud14c\uc774\ub108\ub3c4 \uc0ac\uc6a9\ud574\uc694? \uc6b4\uc601\uccb4\uc81c\uac00 2\uac8c \ub300\ubb38\uc5d0 \uc5e1\uc774 \ub354 \ube68\ub77c\uc694?<br \/>\n<div id=\"attachment_3165\" style=\"width: 295px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.gamlor.info\/wordpress\/wp-content\/uploads\/2016\/07\/cant-hear-you.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-3165\" src=\"https:\/\/www.gamlor.info\/wordpress\/wp-content\/uploads\/2016\/07\/cant-hear-you-285x300.jpg\" alt=\"\uc6b4\uc601\uccb4\uc81c 2\uac8c \uc0ac\uc6a9\ud558\ub2e4\" width=\"285\" height=\"300\" class=\"size-medium wp-image-3165\" srcset=\"https:\/\/www.gamlor.info\/wordpress\/wp-content\/uploads\/2016\/07\/cant-hear-you-285x300.jpg 285w, https:\/\/www.gamlor.info\/wordpress\/wp-content\/uploads\/2016\/07\/cant-hear-you-768x809.jpg 768w, https:\/\/www.gamlor.info\/wordpress\/wp-content\/uploads\/2016\/07\/cant-hear-you.jpg 972w\" sizes=\"(max-width: 285px) 100vw, 285px\" \/><\/a><p id=\"caption-attachment-3165\" class=\"wp-caption-text\">\uc6b4\uc601\uccb4\uc81c 2\uac8c \uc0ac\uc6a9\ud558\ub2e4<\/p><\/div><br \/>\n\uc800\ub294 \uadfc\uc591 \uadf8\ub0e5 Docker \ucee8\ud14c\uc774\ub108 \uc0ac\uc6a9\ud558\uace0 \uc2f6\uc5b4\uc694. \uadf8\ub9ac\uadf8 \uc11c\ubc84\ud558\uace0 \uc6b4\uc601\uccb4\uc81c\uc758 \uac71\uc815 \ud558\uc9c0 \uc54a\uace0 \uc2f6\uc5b4\uc694. \uadf8\ub7fc Joyent\uc758 \ud2b8\ub9ac\ud1a4\uc774\ub791 \ud560 \uc218 \uc788\uc5b4\uc694!! \uc774 \ube14\ub85c\uadf8 \uae00\uac00 \uc0ac\uc791\uc774 \uc124\uba85\ud574\uc694. \uc544\ub9c8 \ud2b8\ub9ac\ud1a4 \ube14\ub85c\uadf8 \ub354 \uae00\ub354 \uc4f8 \uac70\uc608\uc694 (\u3145\u3145).<\/p>\n<p>Joyent \ud2b8\ub9ac\ud1a4\uc774 \uc624\ud508 \uc18c\uc2a4 \uc18c\ud504\ud2b8\uc6e8\uc5b4 \uc774\uc608\uc694. \uadfc\ub370 \uc774 \ube14\ub85c\uadf8 \uae00\uc5d0 \uc81c\uac00 AWS \uac19\uc740 Joyent\uc758 \uc2a4\ube44\uc2a4 \uc0ac\uc6a9\ud560 \uac70\uc608\uc694.<\/p>\n<h3>\uc900\ube44\ud558\uc790!<\/h3>\n<p>\uba3c\uc800 \uc6b0\ub9ac\ub294 Joyent\ub97c \ud68c\uc6d0\uac00\uc785\ud574\uc57c \ub3fc\uc694. \uadf8\ub9ac\uace0 \uc544\ub9c8 \uc2e0\uc6a9 \uce74\ub4dc\uc758 \ubc88\ud638\ub3c4 \ud544\uc694\ud574\uc694 (\uc81c\uac00 \uae30\uc5b5 \uc798 \uc548\ud574\uc694. \ubbf8\uc548\ud574\uc694). \uadf8\ub9ac\uace0 <a href=\"https:\/\/my.joyent.com\/main\/#!\/account\">SSH-\uc5f4\uc1e0\ub3c4<\/a> \ucd94\uac00\ud574\uc694.<br \/>\n<a href=\"https:\/\/www.gamlor.info\/wordpress\/wp-content\/uploads\/2016\/07\/signup.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-3152\" src=\"https:\/\/www.gamlor.info\/wordpress\/wp-content\/uploads\/2016\/07\/signup-300x293.png\" alt=\"\ud68c\uc6d0\uac00\uc785\" width=\"300\" height=\"293\" srcset=\"https:\/\/www.gamlor.info\/wordpress\/wp-content\/uploads\/2016\/07\/signup-300x293.png 300w, https:\/\/www.gamlor.info\/wordpress\/wp-content\/uploads\/2016\/07\/signup-768x750.png 768w, https:\/\/www.gamlor.info\/wordpress\/wp-content\/uploads\/2016\/07\/signup.png 944w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\nDocker \ubc8c\uc368 \uc124\uce58\ud574\uc7ce\uc544\uc694. \uc544\ub2c8\ubcc0 <a href=\"https:\/\/www.docker.com\/\">Docker <\/a>\uc124\uce58\ud574\uc8fc\uc138\uc694.<br \/>\n\uc6b0\ub9ac\ub294 \ud2b8\ub9ac\ud1a4 \uc571\ub3c4 \ud544\uc694\ud574\uc694. \uc774 \uc571\ub294 node.js\ud558\uace0 npm \ud544\uc694\ud574\uc694. \uc800\uc758 \ucef4\ud4e8\ud130\uc758 nodejs 4.x\ub85c \uc548\ub410\uc5b4\uc11c <a href=\"https:\/\/nodejs.org\/en\/\">nodejs 6.x<\/a> \uc0ac\uc6a9\ud574\uc8fc\uc11c\uc694. \ud2b8\ub9ac\ud1a4 \uc571\ub294 npm\ub85c \uc124\uce58\ud558\uc138\uc694:<br \/>\n<script src=\"https:\/\/gist.github.com\/263c05fa68cff94b754df3bf55deab4d.js?file=install-triton-cmd.sh\"><\/script><noscript><pre><code class=\"language-shell shell\">sudo npm install triton -g<\/code><\/pre><\/noscript><br \/>\n\ub9c8\uc9c0\ub9c9 \uc6b0\ub9ac\ub294 <a href=\"https:\/\/docs.joyent.com\/public-cloud\/api-access\/cloudapi\">\ud2b8\ub9ac\ud1a4 \uc571 \uad6c\uc131\ud574\uc694<\/a>. Joyent\uc758 \uc544\uc774\ub514\ud558\uace0 \ub370\uc774\ud130 \uc13c\ud130\ud558\uace0 SSH-\uc5f4\uc1e0 \uc785\ub825\ud558\uc138\uc694:<br \/>\n<script src=\"https:\/\/gist.github.com\/263c05fa68cff94b754df3bf55deab4d.js?file=create-profile.sh\"><\/script><noscript><pre><code class=\"language-shell shell\">gamlor@minty ~ $ triton profile create\n    A profile name. A short string to identify a CloudAPI endpoint to the\n    `triton` CLI.\n    name: us-west-1\n    \n    The CloudAPI endpoint URL.\n    url: https:\/\/us-west-1.api.joyent.com\n    \n    Your account login name.\n    account: Gamlor\n    \n    The fingerprint of the SSH key you have registered for your account.\n    Alternatively, You may enter a local path to a public or private SSH key to\n    have the fingerprint calculated for you.\n    keyId: ~\/.ssh\/id_rsa\n    Fingerprint: 07:9a:a5:c8:07:82:72:82:63:ce:5b:e3:e6:bf:83:61\n    \n    Saved profile &quot;us-west-1&quot;.\n    Setting up profile &quot;us-west-1&quot; to use Docker.\n    Setup profile &quot;us-west-1&quot; to use Docker (v1.10.3). Try this:\n        eval &quot;$(triton env --docker us-west-1)&quot;\n        docker info\n    Set &quot;us-west-1&quot; as current profile (because it is your only profile).\n<\/code><\/pre><\/noscript><\/p>\n<h3>\uc2dc\uc791\ud558\uc790!<\/h3>\n<p>\uba3c\uc800 \uc6b0\ub9ac\ub294 \ud2b8\ub9ac\ud1a4\uc758 \ud658\uacbd \ubc14\uafd4\uc694. \uc774\ub807\uac8c \ud558\uba74 Docker\uac00 \ud2b8\ub9ac\ud1a0\uc758 Docker \ud638\uc2a4\ud2b8\ub97c \uc0ac\uc6a9\ud574\uc694:<br \/>\n<script src=\"https:\/\/gist.github.com\/263c05fa68cff94b754df3bf55deab4d.js?file=switch-env.sh\"><\/script><noscript><pre><code class=\"language-shell shell\">#What enviroment will be setup\ngamlor@minty ~ $ triton env\n#Ok...let&#039;s set it up\ngamlor@minty ~ $ eval $(triton env)\n<\/code><\/pre><\/noscript><br \/>\n\uadf8\ub9ac\uace0, \uc774\uc81c\ub294 Docker\uac00 \ucee8\ud14c\uc774\ub108 \ubc30\ud3ec\ud558\uc790! \uc6b0\ub9ac\ub294 \uadf8\ub0e5 \ubcf4\ud1b5 Docker\uc758 \uba85\ub839\ud574\uc694. \uc6f9 \uc11c\ubc84 \uc608 \uc608\uc694, \uba3c\uc800 <code>docker run<\/code>\ub85c \ucee8\ud14c\uc774\ub108 (\uc544\uc2dc\uc544 \ub370\uc774\ud130 \uc13c\ud130 \uc5c6\uc74c \ud83d\ude41 ) \uc2dc\uc791\ud558\uace0 <code>docker ps<\/code>\ub85c \ucee8\ud14c\uc774\ub108\ub97c \ubcf4\uace0 <code>docker inspect<\/code>\ub85c IP \uc8fc\uc18c\ub97c \uc7a6\uc544\uc694:<br \/>\n<script src=\"https:\/\/gist.github.com\/263c05fa68cff94b754df3bf55deab4d.js?file=first-container.sh\"><\/script><noscript><pre><code class=\"language-shell shell\">#Let&#039;s nginx\nroman@minty ~ $ docker run -d -p 80 --name blog-server nginx\n  Unable to find image &#039;nginx:latest&#039; locally\n  latest: Pulling from nginx (req 49871310-4381-11e6-8f6a-1d7cd58ced5b)\n  6685b2154893: Already exists \n  a2295636c7aa: Already exists \n  3035387b9e83: Already exists \n  963493e54e68: Already exists \n  968c69f18673: Already exists \n  755b4eb93a9e: Already exists \n  f3b2532b0301: Already exists \n  f3bf4daa2ff2: Already exists \n  Digest: sha256:1fd7247f7bdb19ab1ccabb53ec5ecfa31e2ea39a24dfe636f78265980f4eebfb\n  Status: Image is up to date for nginx:latest\n  4f0cb241c17b4de4ad7e8c813f0d48c19a5c209a8eae4ce19e142770684adb5\n  \n#Check it running\nroman@minty$ docker ps -a\n  CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                         NAMES\n  4f0cb241c17b        nginx               &quot;nginx -g &#039;daemon off&quot;   2 minutes ago       Up About a minute   0.0.0.0:80-&gt;80\/tcp, 443\/tcp   blog-server\n\n#What IP do we have?\nroman@minty$ docker inspect --format &#039;{{ .NetworkSettings.IPAddress }}&#039; blog-server\n  8.19.33.77\n<\/code><\/pre><\/noscript><\/p>\n<p>\uadf8\ub9ac\uace0 \uc774 \ucee8\ud14c\uc774\ub108 \uc9c4\uc9dc \uc2dc\uc791\ud588\uace0 \uc791\ub3d9\ud558\uace0 \uc788\uc5b4\uc694! IP \uc8fc\uc18c\uc5d0 \uc5f0\ub77d\ubcf4\uc138\uc694!<\/p>\n<p><a href=\"https:\/\/www.gamlor.info\/wordpress\/wp-content\/uploads\/2016\/07\/ngnix-works.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3155 size-medium\" src=\"https:\/\/www.gamlor.info\/wordpress\/wp-content\/uploads\/2016\/07\/ngnix-works-300x170.png\" alt=\"ngnix \ub3fc\uc694!\" width=\"300\" height=\"170\" srcset=\"https:\/\/www.gamlor.info\/wordpress\/wp-content\/uploads\/2016\/07\/ngnix-works-300x170.png 300w, https:\/\/www.gamlor.info\/wordpress\/wp-content\/uploads\/2016\/07\/ngnix-works.png 750w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\uc26c\uc6cc\uc694!<br \/>\n<div id=\"attachment_3168\" style=\"width: 272px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.gamlor.info\/wordpress\/wp-content\/uploads\/2016\/07\/can-hear-you.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-3168\" src=\"https:\/\/www.gamlor.info\/wordpress\/wp-content\/uploads\/2016\/07\/can-hear-you-262x300.jpg\" alt=\"\uc6b4\uc601\uccb4\uc81c \ud558\ub098 \ube7c\uc8fc\uc138\uc694\" width=\"262\" height=\"300\" class=\"size-medium wp-image-3168\" srcset=\"https:\/\/www.gamlor.info\/wordpress\/wp-content\/uploads\/2016\/07\/can-hear-you-262x300.jpg 262w, https:\/\/www.gamlor.info\/wordpress\/wp-content\/uploads\/2016\/07\/can-hear-you-768x881.jpg 768w, https:\/\/www.gamlor.info\/wordpress\/wp-content\/uploads\/2016\/07\/can-hear-you-893x1024.jpg 893w, https:\/\/www.gamlor.info\/wordpress\/wp-content\/uploads\/2016\/07\/can-hear-you.jpg 900w\" sizes=\"(max-width: 262px) 100vw, 262px\" \/><\/a><p id=\"caption-attachment-3168\" class=\"wp-caption-text\">\uc6b4\uc601\uccb4\uc81c \ud558\ub098 \ube7c\uc8fc\uc138\uc694<\/p><\/div><\/p>\n<p>\ucee8\ud14c\uc774\ub108\ub97c \uba48\ucd94\uae30 \uc78a\uc9c0 \ub9c8\uc138\uc694:<br \/>\n<script src=\"https:\/\/gist.github.com\/263c05fa68cff94b754df3bf55deab4d.js?file=stop.sh\"><\/script><noscript><pre><code class=\"language-shell shell\">roman@minty ~ $ docker rm -f blog-server\n  blog-server\n<\/code><\/pre><\/noscript><\/p>\n<h3>\uc624\ub298\uc5d0\ub294 \ub05d\ub0b4\uc694!<\/h3>\n<p>\uc800\ub294 \ud2b8\ub9ac\ud1a4 \ube14\ub85c\uadf8 \uae00 \ub354 \uc4f8 \uac70\uc608\uc694.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>(Here&#8217;s the English version, easier to understand) Docker \uc544\uc0c8\uc694? \ub9de\uc544, \uc694\uc998\uc5d0 \uc5ec\ub7ec\ubd84\ub4e4\uc774 Docker \uc54c\uace0 \uc0ac\uc6a9\ud558\uace0 \uc788\ub098\uc694. \uadfc\ub370 Docker\uc758 \ucee8\ud14c\uc774\ub108\uac00 \uc5b4\ub5bb\uac8c \ubc30\ud3ec\ud558\uc138\uc694? \ub2f9\uc2e0\ub294 \uba87\uac8c Linux-\uc11c\ubc84 \uc788\uc5b4\uace0 Docker \ucee8\ud14c\uc774\ub108\ub97c \uc11c\ubc84\uc5d0 \uc5c5\ub85c\ub4dc\ud574\uc694. \uc11c\ubc84&hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_links_to":"","_links_to_target":""},"categories":[187,255],"tags":[300,301,302],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.gamlor.info\/wordpress\/wp-json\/wp\/v2\/posts\/3136"}],"collection":[{"href":"https:\/\/www.gamlor.info\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gamlor.info\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gamlor.info\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gamlor.info\/wordpress\/wp-json\/wp\/v2\/comments?post=3136"}],"version-history":[{"count":35,"href":"https:\/\/www.gamlor.info\/wordpress\/wp-json\/wp\/v2\/posts\/3136\/revisions"}],"predecessor-version":[{"id":3245,"href":"https:\/\/www.gamlor.info\/wordpress\/wp-json\/wp\/v2\/posts\/3136\/revisions\/3245"}],"wp:attachment":[{"href":"https:\/\/www.gamlor.info\/wordpress\/wp-json\/wp\/v2\/media?parent=3136"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gamlor.info\/wordpress\/wp-json\/wp\/v2\/categories?post=3136"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gamlor.info\/wordpress\/wp-json\/wp\/v2\/tags?post=3136"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}