{"id":2969,"date":"2018-06-24T15:36:15","date_gmt":"2018-06-24T06:36:15","guid":{"rendered":"https:\/\/greentown.tokyo\/?p=2969"},"modified":"2018-07-19T01:27:40","modified_gmt":"2018-07-18T16:27:40","slug":"docker-lightningnetwork","status":"publish","type":"post","link":"https:\/\/greentown.tokyo\/?p=2969","title":{"rendered":"Docker\u77e5\u3089\u3093\u3051\u3069\uff01\u306a\u4eba\u306b\u8d08\u308b\u3001Mac\uff0bDocker\u3067Lightning Network\u306e\u30ce\u30fc\u30c9\u3092\u305f\u3066\u308b - \u6e96\u5099\u7de8"},"content":{"rendered":"<p>\u203b\u3053\u306e\u8a18\u4e8b\u306b\u66f8\u304b\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u8a66\u3059\u65b9\u306f\u3001\u81ea\u5df1\u8cac\u4efb\u3067\u3084\u3063\u3066\u304f\u3060\u3055\u3044\u307e\u3057\u3067\u5019\u3002<\/p>\n<p>\u4e45\u3005\u306b\u731b\u52c9\u3057\u305f\u3002<\/p>\n<p>Docker\u3063\u3066\u306a\u3093\u305e\u3084\uff1f\u3063\u3068\u6c17\u306b\u306f\u306a\u3063\u3066\u306f\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u5148\u65e5\u3053\u306e\u672c<\/p>\n<p><iframe style=\"width: 120px; height: 240px;\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" frameborder=\"0\" src=\"https:\/\/rcm-fe.amazon-adsystem.com\/e\/cm?ref=qf_sp_asin_til&amp;t=natukacchoama-22&amp;m=amazon&amp;o=9&amp;p=8&amp;l=as1&amp;IS2=1&amp;detail=1&amp;asins=4905073413&amp;linkId=2302a59bd676a8d5364b2bcd0cc40969&amp;bc1=000000&amp;lt1=_blank&amp;fc1=333333&amp;lc1=0066c0&amp;bg1=ffffff&amp;f=ifr\"><br \/>\n<\/iframe><\/p>\n<p>\u3092\u8aad\u3093\u3060\u6642\u306b\u300c\u76ee\u7684\u306e\u306a\u3044\u52c9\u5f37\u306f\u3059\u308b\u3093\u3058\u3083\u306a\u3044\u3002\u5fc5\u8981\u306b\u306a\u3063\u305f\u3089\u3084\u308c\u3070\u826f\u3044\u300d\u306a\u3093\u3066\u66f8\u3044\u3066\u3042\u3063\u305f\u3067\u3001\u3044\u3064\u304b\u3084\u308d\u3046\u7684\u306b\u8003\u3048\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u3055\u3063\u305d\u304f\u8a66\u3059\u6a5f\u4f1a\u304c\u8a2a\u308c\u307e\u3057\u305f\u3002\u3061\u306a\u307f\u306b\u8457\u8005\u306fWindows95\u3092\u4e16\u306b\u9001\u308a\u51fa\u3057\u3001\u53f3\u30af\u30ea\u30c3\u30af\u3084Drag&amp;Drop\u3092\u666e\u53ca\u3055\u305b\u305f\u4eba\u3060\u305d\u3046\u3067\u3059\u3002\u8457\u8005\u306e\u539f\u70b9\u3068\u3082\u8a00\u3048\u308b\u5c0f\u5b66\uff13\u5e74\u751f\u306e\u6642\u306e\u30a8\u30d4\u30bd\u30fc\u30c9\u304c\u306a\u304b\u306a\u304b\u5370\u8c61\u7684\u3067\u3057\u305f\u3002\u8457\u8005\u306e\u30de\u30de\u304c\u5f53\u305f\u308a\u524d\u306e\u3053\u3068\u3092\u3061\u3083\u3093\u3068\u5b9f\u8df5\u3067\u304d\u308b\u4eba\u306a\u3093\u3060\u308d\u3046\u306a\u3001\u3068\u3044\u3046\u5370\u8c61\u3002\u81ea\u5206\u3060\u3063\u305f\u3089\u5bbf\u984c\u7d42\u308f\u3089\u306a\u304f\u3066\u3082\u6700\u7d42\u7684\u306b\u904a\u3073\u306b\u3044\u304b\u305b\u3066\u3057\u307e\u3063\u3066\u308b\u3093\u3060\u306a\uff08\u2190\u307b\u3093\u3068\u3001\u826f\u304f\u306a\u3044\u3088\u306d\u3002\u6c17\u3065\u3051\u3066\u3088\u304b\u3063\u305f\u3051\u3069\u3001\u6642\u3059\u3067\u306b\u9045\u3057\u3002\u305d\u306e\u5f8c\u306e\u3053\u3068\u306f\u304a\u5bdf\u3057\u304f\u3060\u3055\u3044\u307e\u3057\u301c\uff09<\/p>\n<p>\u8131\u7dda\u3057\u305f\u30fb\u30fb<\/p>\n<p>\u5148\u9031\u3001\u30d3\u30c3\u30c8\u30b3\u30a4\u30f3\u306e\u30bb\u30ab\u30f3\u30c9\u30ec\u30a4\u30e4\u30fc\u3067\u3042\u308b\u30e9\u30a4\u30c8\u30cb\u30f3\u30b0\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306e\u30ce\u30fc\u30c9\u3092\u305f\u3066\u3088\u3046\u30cf\u30f3\u30ba\u30aa\u30f3\u306b\u53c2\u52a0\u3059\u308b\u6a5f\u4f1a\u304c\u3042\u308a\u307e\u3057\u305f\u3002\u8b1b\u7fd2\u306b\u53c2\u52a0\u3059\u308b\u306b\u306fUbuntu\u304c\u30a4\u30a4\u30e8\uff01\u3068\u306e\u3053\u3068\u3002Mac\u306e\u4eba\u306f\u4eee\u60f3\u74b0\u5883\u3068\u304bDocker\u4f7f\u3063\u3066\u306d\u3001\u3068\u306e\u3053\u3068\u3002\u304a\u3049\u3001\u3053\u308c\u306f\u305c\u3072Docker\u3067\u53c2\u52a0\u3057\u306a\u304f\u3066\u306f\uff01<\/p>\n<p>\u3051\u3063\u3053\u3046\u30cf\u30de\u308a\u3069\u3053\u308d\u304c\u3042\u3063\u305f\u306e\u3067\u3001\u6574\u7406\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u53c2\u52a0\u3057\u3066\u304b\u3089\u77e5\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u8b1b\u5e2b\u306f<\/p>\n<p><iframe style=\"width: 120px; height: 240px;\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" frameborder=\"0\" src=\"https:\/\/rcm-fe.amazon-adsystem.com\/e\/cm?ref=qf_sp_asin_til&amp;t=natukacchoama-22&amp;m=amazon&amp;o=9&amp;p=8&amp;l=as1&amp;IS2=1&amp;detail=1&amp;asins=4757103670&amp;linkId=42b52c37472d636f5cba065c7c384c7c&amp;bc1=000000&amp;lt1=_blank&amp;fc1=333333&amp;lc1=0066c0&amp;bg1=ffffff&amp;f=ifr\"><br \/>\n<\/iframe><\/p>\n<p>\u3053\u3061\u3089\u3092\u7ffb\u8a33\u3057\u305f\u6709\u540d\u4eba\u3058\u3083\u3063\u305f\u3088&#x1f633;<\/p>\n<h2>Docker \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>\u4ee5\u4e0b\u306e\u30b5\u30a4\u30c8\u304b\u3089Docker for Mac \u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u304d\u3066\u3001Mac\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3088\u3002<\/p>\n<p><a href=\"https:\/\/store.docker.com\/editions\/community\/docker-ce-desktop-mac\">Docker for Mac<\/a><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/greentown.tokyo\/wp-content\/uploads\/2018\/06\/d2b925130576756f0a240a20a538a678.png\" alt=\"\" width=\"1664\" height=\"904\" class=\"alignnone wp-image-2974 size-full\" srcset=\"https:\/\/greentown.tokyo\/wp-content\/uploads\/2018\/06\/d2b925130576756f0a240a20a538a678.png 1664w, https:\/\/greentown.tokyo\/wp-content\/uploads\/2018\/06\/d2b925130576756f0a240a20a538a678-300x163.png 300w, https:\/\/greentown.tokyo\/wp-content\/uploads\/2018\/06\/d2b925130576756f0a240a20a538a678-768x417.png 768w, https:\/\/greentown.tokyo\/wp-content\/uploads\/2018\/06\/d2b925130576756f0a240a20a538a678-1024x556.png 1024w\" sizes=\"(max-width: 1664px) 100vw, 1664px\" \/><\/p>\n<p>\u30af\u30b8\u30e9\u304b\u308f\u3086\u3044\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<h2>Docker \u8d77\u52d5<\/h2>\n<p>\u30bf\u30fc\u30df\u30ca\u30eb\u3092\u958b\u3044\u3066\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u6253\u3064\u306e\u3088\u301c<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \">$ docker run -it ubuntu bash<\/pre>\n<p>&nbsp;<\/p>\n<p>\u3044\u304d\u306a\u308a Ubuntu \u304c\u8d77\u52d5\u3057\u3066\u30d3\u30d3\u3063\u305f\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u306f\/bin\/bash\u3067\u30b3\u30f3\u30c6\u30ca\u30fc\u3092\u64cd\u4f5c\u3059\u308b\u6642\u306b\u6307\u5b9a\u3059\u308b\u3093\u3060\u3063\u3066\u3002<\/p>\n<ul>\n<li>-i\uff1a\u30b3\u30f3\u30c6\u30ca\u30fc\u306e\u6a19\u6e96\u5165\u529b\u3092\u958b\u304f<\/li>\n<li>-t\uff1atty\uff08\u7aef\u672b\u30c7\u30d0\u30a4\u30b9\uff09\u3092\u78ba\u4fdd<\/li>\n<\/ul>\n<p>\u3053\u306eUbuntu\u3001vi \u3084 netstat \u306a\u3069\u306e\u57fa\u672c\u7684\u306a\u30b3\u30de\u30f3\u30c9\u304c\u5165\u3063\u3066\u3044\u306a\u3044\uff01<\/p>\n<p>apt-get<span class=\"Apple-converted-space\">\u00a0\u3067\u30b5\u30af\u30b5\u30af\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u308b\u306e\u3067\u3059\u304c\u3001\u30b3\u30f3\u30c6\u30ca\u505c\u6b62\u3057\u3066\u3044\u3063\u305f\u3093\u524a\u9664\u3001\u30a4\u30e1\u30fc\u30b8\u304b\u3089\u518d\u5ea6\u8d77\u52d5\u3059\u308b\u3068\u5168\u90e8\u6d88\u3048\u3066\u308b\uff01\uff01<\/span><\/p>\n<p>\u305b\u3063\u305b\u3068\u8272\u3005\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u306e\u306b\u30fb\u30fb<\/p>\n<p>Dockerfile\u3068\u3044\u3046\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3084\u30d0\u30c3\u30c1\u30d5\u30a1\u30a4\u30eb\u306e\u3088\u3046\u306a\u3082\u306e\u306b\u3001\u51e6\u7406\u3092\u8a18\u8ff0\u3057\u3066\u30a4\u30e1\u30fc\u30b8\u3092\u4f5c\u6210\u3059\u308b\u3068\u3044\u3044\u3089\u3057\u3044\u3002<\/p>\n<p>\u7528\u8a9e\u306e\u89e3\u91c8\u306f\u3056\u3063\u304f\u308a\u3044\u3063\u3066<\/p>\n<table border=\"1\" style=\"border-collapse: collapse; width: 100%;\">\n<thead>\n<tr style=\"height: 18px;\">\n<th style=\"width: 50%; height: 18px;\">Docker<\/th>\n<th style=\"width: 50%; height: 18px;\">C# \u3068\u304b Java<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"height: 18px;\">\n<td style=\"width: 50%; height: 18px;\">Dockerfile<\/td>\n<td style=\"width: 50%; height: 18px;\">\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9<\/td>\n<\/tr>\n<tr style=\"height: 18px;\">\n<td style=\"width: 50%; height: 18px;\">\u30a4\u30e1\u30fc\u30b8<\/td>\n<td style=\"width: 50%; height: 18px;\">\u30af\u30e9\u30b9<\/td>\n<\/tr>\n<tr style=\"height: 18px;\">\n<td style=\"width: 50%; height: 18px;\">\u30b3\u30f3\u30c6\u30ca<\/td>\n<td style=\"width: 50%; height: 18px;\">\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u306a\u611f\u3058\uff1fAWS\u306e\u30a4\u30e1\u30fc\u30b8\u3068\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306b\u5f53\u3066\u306f\u3081\u3066\u3082\u826f\u3044\u304b\u3082\u3002<\/p>\n<p>Dockerfile\u306f<\/p>\n<ul>\n<li>Dockerfile\u4f5c\u6210\u2192\u30d3\u30eb\u30c9\u3057\u3066\u30a4\u30e1\u30fc\u30b8\u4f5c\u6210\u2192\u30b3\u30f3\u30c6\u30ca\u4f5c\u6210<\/li>\n<\/ul>\n<p>\u3060\u3068\u30c7\u30d0\u30c3\u30af\u304c\u5927\u5909\u3089\u3057\u3044\u306e\u3067<\/p>\n<ul>\n<li>\u30b3\u30f3\u30c6\u30ca\u5185\u3067\u4f5c\u696d\u2192\u4f5c\u696d\u5185\u5bb9\u3092\u30e1\u30e2\u3063\u3068\u304f\u2192\u30e1\u30e2\u306e\u5185\u5bb9\u3092Dockefile\u306b\u843d\u3068\u3059<\/li>\n<\/ul>\n<p>\u3068\u3044\u3046\u306e\u304c\u52b9\u7387\u826f\u3044\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>\u3068\u308a\u3042\u3048\u305a\u5148\u307b\u3069\u8d77\u52d5\u3057\u305f Ubuntu\u306f\u3044\u3063\u305f\u3093 exit \u3067\u629c\u3051\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \">$ docker ps -a\r\nCONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS                  PORTS               NAMES\r\n0144f052dfe7        ubuntu              \"bash\"                   3 days ago          Up 3 days                                   naughty_bohr\r\n$ docker rm 0144f052dfe7\r\n0144f052dfe7\r\n$ docker images\r\nREPOSITORY          TAG                 IMAGE ID            CREATED             SIZE\r\nubuntu              latest              113a43faa138        2 weeks ago         81.2MB\r\n$ docker rmi 113a43faa138\r\n113a43faa138\r\n<\/pre>\n<ul>\n<li>docker ps -a \uff1a\u30b3\u30f3\u30c6\u30ca\u306e\u4e00\u89a7\u3092\u8868\u793a\uff08docker ps\u3060\u3068\u8d77\u52d5\u4e2d\u306e\u3082\u306e\u3092\u8868\u793a\uff09<\/li>\n<li>docker rm &lt;CONTAINER ID&gt;\uff1a\u30b3\u30f3\u30c6\u30ca\u524a\u9664<\/li>\n<li>docker images\uff1a\u30a4\u30e1\u30fc\u30b8\u4e00\u89a7\u3092\u8868\u793a<\/li>\n<li>docker rmi &lt;IMAGE ID&gt;\uff1a\u30a4\u30e1\u30fc\u30b8\u524a\u9664<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h2>\u00a0\u518d\u3073 docker run -it ubuntu \/bin\/bash<\/h2>\n<p>\u30e6\u30fc\u30b6\u8a2d\u5b9a\u304b\u3089\u3084\u3063\u3066\u307f\u308b\u3057\u30fb\u30fb<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true\">$ docker run -it ubuntu \/bin\/bash\r\nroot@78b3f440be59:\/# adduser hoge    \r\nAdding user `hope' ...\r\n\uff08\u7701\u7565\uff09\r\nroot@78b3f440be59:\/# gpasswd -a mikke sudo\r\nAdding user home to group sudo\r\n# ls \/home\r\nhoge<\/pre>\n<ul>\n<li>\u30e6\u30fc\u30b6\u3092\u8ffd\u52a0\u300cadduser\u300d\u3068\u300cuseradd\uff08\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u4f5c\u6210\u3055\u308c\u306a\u3044\uff09\u300d\u304c\u3042\u308b\u304b\u3089\u6ce8\u610f<\/li>\n<li>sudo \u6a29\u9650\u3092\u3064\u3051\u3066\u304a\u304f<\/li>\n<\/ul>\n<p>\u3044\u3063\u305f\u3093\u30b3\u30df\u30c3\u30c8<\/p>\n<p>\u4fdd\u5b58\u3057\u307e\u305b\u3046\u3002<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true\">root@78b3f440be59:\/home# exit\r\nexit\r\n$ docker commit\r\n\"docker commit\" requires at least 1 and at most 2 arguments.\r\nSee 'docker commit --help'.\r\n\r\nUsage:  docker commit [OPTIONS] CONTAINER [REPOSITORY[:TAG]] [flags]\r\n\r\nCreate a new image from a container's changes\r\n$ docker start 30b4623f9b64\r\n$ docker exec -it 30b4623f9b64 \/bin\/bash\r\nroot@30b4623f9b64:\/# ls \/home\r\nhoge<\/pre>\n<ul>\n<li>exit\uff1a Ubuntu\u304b\u3089\u3067\u308b<\/li>\n<li>docker commit\uff1a\u4f5c\u696d\u3092\u4fdd\u5b58<\/li>\n<\/ul>\n<p>\u3061\u3083\u3093\u3068\u3067\u304d\u3066\u308b\u304b\u306a\u30fb\u30fb\uff1f<\/p>\n<ul>\n<li>docker start &lt;CONTAINER ID&gt;\uff1a\u30b3\u30f3\u30c6\u30ca\u8d77\u52d5<\/li>\n<li>docker exec -it &lt;CONTAINER ID&gt; \/bin\/bash\uff1a\u8d77\u52d5\u3057\u3066\u3044\u308b\u30b3\u30f3\u30c6\u30ca\u306b\u5165\u308b<\/li>\n<\/ul>\n<p>exec\u3058\u3083\u306a\u304f\u3066attach\u3068\u3044\u3046\u306e\u3067\u3082\u5165\u308c\u308b\u3089\u3057\u3044\u3002<\/p>\n<p>\u3053\u3093\u306a\u611f\u3093\u3058\u3067\u8a66\u3057\u306a\u304c\u3089\u4f5c\u696d\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u00a0lnd\u8d77\u52d5\u307e\u3067<\/h2>\n<p>adduser\u306e\u30e6\u30fc\u30b6\u30fc\u3067\u3046\u307e\u304f\u3044\u304b\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u4e00\u304b\u3089\u3084\u308a\u306a\u304a\u3057\u305f\u30fb\u30fb<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \">$ docker run -it ubuntu bash\r\n# apt-get update\r\n# apt-get install vim\r\n<\/pre>\n<ul>\n<li>apt-get update\uff1aapt-get \u305d\u306e\u307e\u307e\u3058\u3083\u4f7f\u3048\u306a\u3044\u306e\u3067\u66f4\u65b0<\/li>\n<li>apt-get install vim\uff1bvi\u30a4\u30f3\u30b9\u30b3<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>Go\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \"># apt-get install golang-1.10-go\r\n# ln -s \/usr\/lib\/go-1.10\/bin\/go \/usr\/local\/bin\/go\r\n# export GOPATH=~\/gocode\r\n# export PATH=$PATH:$GOPATH\/bin\r\n# go version\r\ngo version go1.10.1 linux\/amd64\r\n<\/pre>\n<p>go version go1.10.1 linux\/amd64 \u3068\u8868\u793a\u3055\u308c\u308c\u3070OK<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>git \u3068 lnd \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true\"># apt-get install git\r\n# go get -u github.com\/golang\/dep\/cmd\/dep \u2190\u5c11\u3057\u6642\u9593\u304b\u304b\u308a\u307e\u3059\uff08\u53cd\u5fdc\u306a\u304f\u3066\u5fc3\u914d\u306b\u306a\u308b\uff09\r\n# go get -d github.com\/lightningnetwork\/lnd \u2190\u6642\u9593\u304b\u304b\u308a\u307e\u3059\r\n# cd $GOPATH\/src\/github.com\/lightningnetwork\/lnd\r\n# git pull\r\n# make &amp;&amp; make install\r\n<\/pre>\n<ul>\n<li>go get -u github.com\/golang\/dep\/cmd\/dep<\/li>\n<li>go get -d github.com\/lightningnetwork\/lnd<\/li>\n<\/ul>\n<p>\u3053\u306e\u3075\u305f\u3064\u3001\u6642\u9593\u304b\u304b\u3063\u305f\u3002\u53cd\u5fdc\u306a\u304f\u3066\u56fa\u307e\u3063\u3066\u308b\u306e\u304b\u3068\u601d\u3063\u305f\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>.lnd \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3068 lnd.conf \u306e\u4f5c\u6210<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \"># mkdir ~\/.lnd &amp;&amp; cd ~\/.lnd\r\n# cp $GOPATH\/src\/github.com\/lightningnetwork\/lnd\/sample-lnd.conf .\/lnd.conf\r\n# vi lnd.conf\r\n<\/pre>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u7de8\u96c6\u3057\u307e\u3059\u3002<\/p>\n<p>bitcoin.simnet=1<br \/>\n\u2193<br \/>\n;bitcoin.simnet=1;<\/p>\n<p>externalip=<br \/>\n\u2193<br \/>\nexternalip=xxx.xx.xx.xx.:9735\uff08\u81ea\u5206\u306eIP\uff09<\/p>\n<p>; noencryptwallet=1<br \/>\n\u2193<br \/>\nnoencryptwallet=1<\/p>\n<p>;alias=My Lightning ?~X~G<br \/>\n\u2193<br \/>\nalias=hoge<\/p>\n<p>;bitcoin.testnet=1<br \/>\n\u2193<br \/>\nbitcoin.testnet=1<\/p>\n<p>bitcoin.node=btcd<br \/>\n\u2193<br \/>\nbitcoin.node=neutrino<\/p>\n<p>; bitcoin.defaultchanconfs=3<br \/>\n\u2193<br \/>\nbitcoin.defaultchanconfs=1<\/p>\n<p>; autopilot.active=1<br \/>\n\u2193<br \/>\nautopilot.active=1<\/p>\n<p>; noencryptwallet=1<br \/>\n\u2193<br \/>\nnoencryptwallet=1<br \/>\n\u4fdd\u5b58\u3057\u3066vi \u9589\u3058\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>lnd\u8d77\u52d5<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \"># lnd &amp;\r\n[1] 10668\r\nroot@31f4879b5812:~\/.lnd# 2018-06-24 00:21:19.544 [INF] LTND: Version 0.4.2-beta commit=18f17ad49b4cc58635a285e53441d82a0c54fd99\r\n2018-06-24 00:21:19.547 [INF] LTND: Active chain: Bitcoin (network=testnet)\r\n2018-06-24 00:21:19.576 [INF] CHDB: Checking for schema update: latest_version=1, db_version=1\r\n2018-06-24 00:21:19.578 [INF] RPCS: Generating TLS certificates...\r\n2018-06-24 00:21:19.613 [INF] RPCS: Done generating TLS certificates\r\n:\r\n<\/pre>\n<p>\u52d5\u3044\u3066\u308b\u3063\u307d\u3044\u3067\u3059\u3002<br \/>\n\u3068\u3081\u304b\u305f\u304c\u5206\u304b\u3089\u306a\u304b\u3063\u305f\u306e\u3067\u3001kill\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u3042\u3068\u304c\u304d<\/h2>\n<p>\u3046\u307e\u304f\u3067\u304d\u306a\u304f\u3066\u3001\u3072\u3055\u3073\u3055\u306b\u4e8c\u65e5\u9593\u5fb9\u591c\u3057\u305f\u3002\u3002<\/p>\n<p>\u3053\u308c\u3089\u306e\u624b\u9806\u306f\u3001Dockerfile\u306b\u8a18\u8ff0\u3057\u3066\u304a\u304f\u3068\u826f\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u4efb\u610f\u306e\u5834\u6240\u306b\u4efb\u610f\u306e\u30d5\u30a1\u30a4\u30eb\u540d\u306eDoclerfile\u3092\u4f5c\u6210\uff08\u62e1\u5f35\u5b50\u3082\u7279\u306b\u4e0d\u8981\uff1f\uff09<\/p>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30d3\u30eb\u30c9\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true\">$ docker build -f .\/df-ubuntu -t ubuntu:hoge --no-cache .\r\n\uff1a\r\n ---&gt; Running in a8d0cd222d24\r\nRemoving intermediate container a8d0cd222d24\r\n ---&gt; f4cd7c78f157\r\nSuccessfully built f4cd7c78f157\r\nSuccessfully tagged ubuntu:hoge\r\n$ docker images\r\nREPOSITORY          TAG                 IMAGE ID            CREATED             SIZE\r\nubuntu              hope               f4cd7c78f157        8 minutes ago       124MB\r\n<\/pre>\n<ul>\n<li><span>docker build -f &lt;Dockerfile\u306e\u30d1\u30b9\u3068\u30d5\u30a1\u30a4\u30eb\u540d&gt; -t ubuntu:&lt;\u4efb\u610f\u306etag\u540d&gt; &#8211;no-cache &lt;\u30c7\u30a3\u30ec\u30af\u30c8\u30ea&gt;<\/span><\/li>\n<\/ul>\n<p>\u9014\u4e2d<\/p>\n<p><span style=\"color: #ff0000;\">debconf: delaying package configuration, since apt-utils is not installed<\/span><\/p>\n<p>\u3053\u3093\u306a\u8b66\u544a\u307f\u305f\u3044\u306a\u306e\u3067\u3066\u307e\u3057\u305f\u304c\u3001\u3068\u308a\u3042\u3048\u305a\u653e\u7f6e\u3002<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true\">$ docker run -it --name hoge ubuntu:hoge \/bin\/bash\r\nTo run a command as administrator (user \"root\"), use \"sudo <command><\/command>\".\r\nSee \"man sudo_root\" for details.\r\n\r\nhoge@fb120256f789:\/$ pwd\r\n\/\r\nhoge@fb120256f789:\/$ ls \/home\r\nhoge\r\nhoge@fb120256f789:\/\r\n<\/pre>\n<ul>\n<li>docker run -it &#8211;name &lt;\u4efb\u610f\u306e\u30b3\u30f3\u30c6\u30ca\u540d&gt; ubuntu:&lt;tag\u540d&gt; \/bin\/bash<\/li>\n<\/ul>\n<p>Dockerfile\u306e\u66f8\u304d\u65b9\u306f\u3001\u3042\u3061\u3053\u3061\u306e\u30b5\u30a4\u30c8\u306b\u8a18\u8f09\u304c\u3042\u308b\u306e\u3067\u691c\u7d22\u3057\u3066\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u3067\u306f\u3067\u306f<\/p>\n<hr \/>\n<p>\u3058\u3076\u3093\u30e1\u30e2<\/p>\n<p>apt-get install net-tools<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u203b\u3053\u306e\u8a18\u4e8b\u306b\u66f8\u304b\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u8a66\u3059\u65b9\u306f\u3001\u81ea\u5df1\u8cac\u4efb\u3067\u3084\u3063\u3066\u304f\u3060\u3055\u3044\u307e\u3057\u3067\u5019\u3002 \u4e45\u3005\u306b\u731b\u52c9\u3057\u305f\u3002 Docker\u3063\u3066\u306a\u3093\u305e\u3084\uff1f\u3063\u3068\u6c17\u306b\u306f\u306a\u3063\u3066\u306f\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u5148\u65e5\u3053\u306e\u672c \u3092\u8aad\u3093\u3060\u6642\u306b\u300c\u76ee\u7684\u306e\u306a\u3044\u52c9\u5f37\u306f\u3059\u308b\u3093 &#8230; <\/p>\n","protected":false},"author":1,"featured_media":3009,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[79,91],"tags":[],"class_list":["post-2969","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-note","category-blockchain"],"_links":{"self":[{"href":"https:\/\/greentown.tokyo\/index.php?rest_route=\/wp\/v2\/posts\/2969"}],"collection":[{"href":"https:\/\/greentown.tokyo\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/greentown.tokyo\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/greentown.tokyo\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/greentown.tokyo\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2969"}],"version-history":[{"count":41,"href":"https:\/\/greentown.tokyo\/index.php?rest_route=\/wp\/v2\/posts\/2969\/revisions"}],"predecessor-version":[{"id":3014,"href":"https:\/\/greentown.tokyo\/index.php?rest_route=\/wp\/v2\/posts\/2969\/revisions\/3014"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/greentown.tokyo\/index.php?rest_route=\/wp\/v2\/media\/3009"}],"wp:attachment":[{"href":"https:\/\/greentown.tokyo\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2969"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/greentown.tokyo\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2969"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/greentown.tokyo\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2969"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}