{"id":2490,"date":"2013-12-03T14:51:06","date_gmt":"2013-12-03T05:51:06","guid":{"rendered":"http:\/\/aatljapan.wpengine.com\/?p=2490"},"modified":"2013-12-03T14:51:56","modified_gmt":"2013-12-03T05:51:56","slug":"deploy-java-apps-with-docker-awesome","status":"publish","type":"post","link":"https:\/\/www.atlassian.com\/ja\/blog\/deploy-java-apps-with-docker-awesome","title":{"rendered":"Docker \u3067 Java \u30a2\u30d7\u30ea\u3092\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u3002\u3059\u3054\u3044\uff01"},"content":{"rendered":"\n<div class=\"postcontent\">\n<p><a href=\"http:\/\/aatljapan.wpengine.com\/2013\/05\/instant-java-provisioning-with-vagrant-and-puppet-stash-one-click-install\/\">Vagrant \u3092\u7528\u3044\u305f Java \u30d7\u30ed\u30d3\u30b8\u30e7\u30cb\u30f3\u30b0<\/a>\u306b\u95a2\u3057\u3066\u79c1\u304c\u5c11\u3057\u524d\u306b\u66f8\u3044\u305f\u30d6\u30ed\u30b0\u3092\u601d\u3044\u51fa\u3059\u65b9\u3082\u3044\u3089\u3063\u3057\u3083\u308b\u304b\u3082\u77e5\u308c\u307e\u305b\u3093\u3002\u4eca\u65e5\u3054\u6848\u5185\u3059\u308b\u3082\u306e\u306f\u3001\u305d\u306e\u30e9\u30a4\u30d0\u30eb\u3067\u3042\u308a\u3001\u540c\u6642\u306b\u305d\u308c\u3092\u3057\u3063\u304b\u308a\u3068\u88dc\u5b8c\u3059\u308b\u5f79\u5272\u3082\u6301\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f\u3001<a href=\"http:\/\/www.docker.io\/\">Docker<\/a> \u306b\u3064\u3044\u3066\u304a\u8a71\u3057\u3001\u307e\u305f\u305d\u308c\u304c\u3044\u304b\u306b\u7d20\u6674\u3057\u3044\u3082\u306e\u3067\u3042\u308b\u304b\u306e\u8aac\u660e\u3082\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002Docker \u3092\u3054\u5b58\u3058\u306a\u3044\u65b9\u306e\u305f\u3081\u306b\u3001\u958b\u767a\u8005\u81ea\u8eab\u306b\u3088\u308b\u30a4\u30f3\u30c8\u30ed\u30c0\u30af\u30b7\u30e7\u30f3\u3092\u6b21\u306b\u7d39\u4ecb\u3057\u307e\u3059:<\/p>\n<blockquote>\n<p>\n  \u300cDocker \u306f\u3001\u9ad8\u5ea6\u306b\u79fb\u690d\u53ef\u80fd\u3067\u81ea\u5df1\u5145\u8db3\u7684\u306a\u30b3\u30f3\u30c6\u30ca\u30fc\u3068\u3057\u3066\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30c7\u30d7\u30ed\u30a4\u30e1\u30f3\u30c8\u3092\u81ea\u52d5\u5316\u3059\u308b\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306e\u30a8\u30f3\u30b8\u30f3\u3067\u3042\u308a\u3001\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u3084\u8a00\u8a9e\u3001\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0\u3001\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u30fb\u30d7\u30ed\u30d0\u30a4\u30c0\u30fc\u306a\u3069\u306b\u306f\u4f9d\u5b58\u3057\u307e\u305b\u3093\u3002\u300d\n<\/p>\n<\/blockquote>\n<p>\u79c1\u304c\u521d\u3081\u3066 Docker \u306e\u540d\u3092\u805e\u3044\u305f\u3068\u304d\u3001\u30b5\u30a4\u30c8\u306b\u3042\u3063\u305f<a href=\"http:\/\/www.youtube.com\/watch?v=wW9CAH9nSLs\">\u30c7\u30e2<\/a>\u3084<a href=\"http:\/\/docs.docker.io\/en\/latest\/examples\/hello_world.html\">\u4f7f\u7528\u4f8b<\/a>\u3092\u898b\u3066\u307f\u305f\u306e\u3067\u3059\u304c\u3001\u5927\u3044\u306b\u597d\u5947\u5fc3\u3092\u304b\u304d\u7acb\u3066\u3089\u308c\u307e\u3057\u305f\u3002\u30b5\u30fc\u30d3\u30b9\u306e\u30c7\u30d7\u30ed\u30a4\u306b\u4f7f\u3048\u308b\u7c21\u5358\u3067\u30da\u30ca\u30eb\u30c6\u30a3\u306e\u306a\u3044\u30b3\u30f3\u30c6\u30ca\u30fc\u3060\u3063\u3066\uff1f \u4eee\u60f3\u30de\u30b7\u30f3\u306e\u30aa\u30fc\u30d0\u30fc\u30d8\u30c3\u30c9\u304c\u306a\u3044\u4eee\u60f3\u30de\u30b7\u30f3\u3060\u3063\u3066\uff1f\u30a4\u30e1\u30fc\u30b8\u30fb\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u3092\u7c21\u5358\u306b\u30ea\u30d7\u30ec\u30a4\u3057\u305f\u308a\u30ea\u30bb\u30c3\u30c8\u3057\u305f\u308a\u3067\u304d\u308b\u3060\u3063\u3066\uff1f\u3053\u308c\u306f\u662f\u975e\u4f7f\u3063\u3066\u307f\u306a\u304f\u3066\u306f\u30fb\u30fb\u30fb<\/p>\n<p><a href=\"http:\/\/www.docker.io\/\">Docker<\/a> \u306f\u3001\u6d17\u7df4\u3055\u308c\u305f <a href=\"http:\/\/lxc.sourceforge.net\/\">lxc (Linux\u30b3\u30f3\u30c6\u30ca\u30fc)<\/a> \u3068 <a href=\"http:\/\/en.wikipedia.org\/wiki\/Aufs\">aufs (\u30a2\u30c9\u30d0\u30f3\u30b9\u30c8\u30fb\u30de\u30eb\u30c1\u30ec\u30a4\u30e4\u30fc\u30c9\u30fb\u30e6\u30cb\u30d5\u30a3\u30b1\u30fc\u30b7\u30e7\u30f3\u30fb\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0)<\/a> \u4e0a\u306b\u304a\u3051\u308b\u52b9\u7387\u7684\u306a\u30e6\u30fc\u30b6\u30fc\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3068 API \u3092\u63d0\u4f9b\u3059\u308b\u3082\u306e\u3067\u3042\u308a\u3001\u305d\u308c\u306b\u3088\u3063\u3066\u4eee\u60f3\u30de\u30b7\u30f3\u30e9\u30a4\u30af\u306a\u8efd\u91cf\u30b3\u30f3\u30c6\u30ca\u30fc\u306e\u8a2d\u5b9a\u3001\u8d77\u52d5\u3001\u505c\u6b62\u3001\u30bb\u30c3\u30c8\u3001\u30ea\u30d7\u30ec\u30a4\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/atlassian.wpengine.netdna-cdn.com\/wp-content\/uploads\/docker-logo.png\" alt=\"docker-logo\" width=\"392\" height=\"238\" class=\"alignnone size-full wp-image-25557\" \/><\/p>\n<p>\u4ee5\u4e0b\u306b\u3001\u30b3\u30f3\u30c6\u30ca\u30fc\u5185\u306e Java \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u5834\u5408\u306e Docker \u306e\u4f7f\u7528\u4f8b\u3092\u793a\u3057\u307e\u3059\u3002\u3053\u3053\u3067\u306f\u79c1\u304c\u4f7f\u3044\u6163\u308c\u3066\u3044\u308b <strong>\u5f37\u529b\u306a<\/strong> Git \u30ea\u30dd\u30b8\u30c8\u30ea\u7ba1\u7406\u30c4\u30fc\u30eb\u3067\u3042\u308b <a href=\"http:\/\/www.atlassian.com\/ja\/software\/stash\/overview\">Stash<\/a> \u3092\u30b5\u30f3\u30d7\u30eb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u3057\u3066\u3044\u307e\u3059 (\u4ed6\u306e<a href=\"http:\/\/www.atlassian.com\/ja\/software\">\u30a2\u30c8\u30e9\u30b7\u30a2\u30f3\u88fd\u54c1<\/a>\u3084\u4efb\u610f\u306e Java \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u7f6e\u304d\u63db\u3048\u308b\u3053\u3068\u306f\u5f53\u7136\u53ef\u80fd\u3067\u3059)\u3002 <\/p>\n<h2>Mac \u30e6\u30fc\u30b6\u30fc\u306e\u5834\u5408\u306b\u5fc5\u8981\u306a\u6e96\u5099<\/h2>\n<p>\u65e2\u306b Linux \u4e0a\u3067\u4f5c\u696d\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3053\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3092\u8aad\u307f\u98db\u3070\u3057\u3066\u3082\u69cb\u3044\u307e\u305b\u3093\u3002Docker \u306f Linux \u4e0a\u3067\u306e\u307f\u52d5\u4f5c\u3059\u308b <em>(\u4ed6\u306e\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3078\u306e\u5bfe\u5fdc\u306f\u958b\u767a\u4e2d\u306a\u3044\u3057\u306f\u8a08\u753b\u4e2d\u306e\u6bb5\u968e\u3067\u3059)<\/em> \u305f\u3081\u3001Mac \u4e0a\u3067\u4f5c\u696d\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u4eee\u60f3\u30de\u30b7\u30f3\u307e\u305f\u306f <a href=\"http:\/\/www.vagrantup.com\/\">Vagrant<\/a> \u3092\u7d4c\u7531\u3057\u3066 Docker \u3092\u5229\u7528\u3057\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>Vagrant \u3092\u4f7f\u7528\u3059\u308b\u5834\u5408\u3001\u30bf\u30fc\u30df\u30ca\u30eb\u306b\u304a\u3044\u3066\u6b21\u306e <span class=\"text codecolorer\">Vagrantfile<\/span> \u3092\u4f5c\u6210\u3057\u3001\u7aef\u672b\u306b\u304a\u3044\u3066 <span class=\"text codecolorer\">vagrant up<\/span> \u3068\u5165\u529b\u3059\u308b\u3053\u3068\u306b\u3088\u308a\u3001\u6700\u65b0\u306e <a href=\"http:\/\/www.ubuntu.com\/\">Ubuntu<\/a> \u30dc\u30c3\u30af\u30b9\u3092\u8d77\u52d5\u3057\u307e\u3059:<\/p>\n<pre>\r\n\r\n\r\n<div class=\"codecolorer-container text mac-classic\" style=\"overflow:auto;white-space:nowrap;width:600px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/>3<br \/>4<br \/>5<br \/>6<br \/>7<br \/><\/div><\/td><td><div class=\"text codecolorer\">Vagrant::Config.run do |config|<br \/>\r\n&nbsp; config.vm.box = &quot;raring&quot;<br \/>\r\n&nbsp; config.vm.box_url = &quot;http:\/\/cloud-images.ubuntu.com\/raring\/current\/raring-server-cloudimg-vagrant-amd64-disk1.box&quot;<br \/>\r\n&nbsp; config.vm.forward_port 7990, 7991<br \/>\r\n&nbsp; config.vm.share_folder(&quot;vagrant-root&quot;, &quot;\/vagrant&quot;, &quot;.&quot;)<br \/>\r\n&nbsp; config.vm.customize [&quot;modifyvm&quot;, :id, &quot;--memory&quot;, 2048]<br \/>\r\nend<\/div><\/td><\/tr><\/tbody><\/table><\/div>\r\n\r\n\r\n<\/pre>\n<p>\u5f8c\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u30c6\u30b9\u30c8\u3092 Mac \u304b\u3089\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u305f\u3081\u3001\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u3067\u306f 7990 \u756a\u30dd\u30fc\u30c8 (Stash \u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u30dd\u30fc\u30c8) \u3092\u30db\u30b9\u30c8\u306e 7991 \u756a\u30dd\u30fc\u30c8\u306b\u30de\u30c3\u30d7\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u304c\u5b8c\u4e86\u3059\u308b\u3068\u3001<span class=\"text codecolorer\">vagrant ssh<\/span> \u3092\u4f7f\u7528\u3057\u3066\u30dc\u30c3\u30af\u30b9\u3078\u306e <span class=\"text codecolorer\">ssh<\/span> \u30a2\u30af\u30bb\u30b9\u304c\u53ef\u80fd\u3068\u306a\u308a\u3001Docker \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><em>(\u3044\u3064\u3082\u4f7f\u3063\u3066\u3044\u308b<a href=\"http:\/\/robknight.org.uk\/blog\/2013\/05\/drupal-on-docker\/\">Vagrant \u306e\u7c21\u4fbf\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u65b9\u6cd5<\/a>\u3092\u7d39\u4ecb\u3057\u3066\u304f\u3060\u3055\u3063\u305f Rob Knight \u3055\u3093\u306b\u611f\u8b1d\u3057\u307e\u3059)<\/em><\/p>\n<p>\u3053\u308c\u3067\u3001Vagrant \u4eee\u60f3\u30de\u30b7\u30f3\u74b0\u5883\u306b\u5165\u308a\u307e\u3057\u305f\u306e\u3067 Docker \u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u7ba1\u7406\u8005\u306e\u6ce8\u610f\u4e8b\u9805 (\u8aad\u307f\u98db\u3070\u3057\u3066\u3082\u69cb\u3044\u307e\u305b\u3093)<\/h2>\n<p>\u65b0\u898f\u30dc\u30c3\u30af\u30b9\u306e\u5834\u5408\u306f\u3001<span class=\"text codecolorer\">.dotfiles<\/span> \u3092\u30c7\u30d7\u30ed\u30a4\u3059\u308b\u969b\u306b <span class=\"text codecolorer\">vim<\/span>\u3001<span class=\"text codecolorer\">curl<\/span>\u3001<span class=\"text codecolorer\">git<\/span> \u304c\u5fc5\u8981\u3067\u3001\u3053\u308c\u3089\u304c\u306a\u3044\u3068\u6b63\u3057\u304f\u52d5\u4f5c\u3057\u307e\u305b\u3093:<\/p>\n<pre>\r\n\r\n\r\n<div class=\"codecolorer-container text mac-classic\" style=\"overflow:auto;white-space:nowrap;width:600px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/>3<br \/><\/div><\/td><td><div class=\"text codecolorer\">sudo apt-get install vim curl git<br \/>\r\n<br \/>\r\ncurl -Lks http:\/\/j.mp\/durdn-cfg | bash<\/div><\/td><\/tr><\/tbody><\/table><\/div>\r\n\r\n<\/pre>\n<h2>Docker \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>Docker \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u7c21\u5358\u306b\u3067\u304d\u307e\u3059\u3002\u6700\u521d\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u5b9f\u884c\u3059\u308b\u305f\u3081\u306e\u30ab\u30fc\u30cd\u30eb\u62e1\u5f35\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059:<\/p>\n<pre>\r\n\r\n\r\n\r\n<div class=\"codecolorer-container text mac-classic\" style=\"overflow:auto;white-space:nowrap;width:600px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/><\/div><\/td><td><div class=\"text codecolorer\">sudo apt-get install linux-image-extra-$(uname -r)<\/div><\/td><\/tr><\/tbody><\/table><\/div>\r\n\r\n\r\n\r\n\r\n<\/pre>\n<p>\u6b21\u306b\u3001<span class=\"text codecolorer\">add-apt-repository<\/span> \u3092\u5229\u7528\u3059\u308b\u305f\u3081\u306b <span class=\"text codecolorer\">software-properties-common<\/span> \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059:<\/p>\n<pre>\r\n\r\n<div class=\"codecolorer-container text mac-classic\" style=\"overflow:auto;white-space:nowrap;width:600px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/><\/div><\/td><td><div class=\"text codecolorer\">sudo apt-get install software-properties-common<\/div><\/td><\/tr><\/tbody><\/table><\/div>\r\n\r\n\r\n<\/pre>\n<p><a href=\"https:\/\/www.dotcloud.com\/\">dotcloud<\/a> <a href=\"https:\/\/help.launchpad.net\/Packaging\/PPA\">ppa<\/a> \u3092\u8ffd\u52a0\u3057\u307e\u3059:<\/p>\n<pre>\r\n\r\n<div class=\"codecolorer-container text mac-classic\" style=\"overflow:auto;white-space:nowrap;width:600px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/><\/div><\/td><td><div class=\"text codecolorer\">sudo add-apt-repository ppa:dotcloud\/lxc-docker<br \/>\r\nsudo apt-get update<\/div><\/td><\/tr><\/tbody><\/table><\/div>\r\n\r\n\r\n<\/pre>\n<p>\u6700\u5f8c\u306b\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066 Docker \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059:<\/p>\n<pre>\r\n<div class=\"codecolorer-container text mac-classic\" style=\"overflow:auto;white-space:nowrap;width:600px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/><\/div><\/td><td><div class=\"text codecolorer\">sudo apt-get install lxc-docker<\/div><\/td><\/tr><\/tbody><\/table><\/div>\r\n\r\n\r\n<\/pre>\n<p>\u3053\u308c\u3067\u3001\u4eca\u5f8c\u306e\u3059\u3079\u3066\u306e\u4f5c\u696d\u306e\u57fa\u790e\u3068\u306a\u308b <span class=\"text codecolorer\">base image<\/span> \u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3068\u306a\u308a\u307e\u3059:<\/p>\n<pre>\r\n<div class=\"codecolorer-container text mac-classic\" style=\"overflow:auto;white-space:nowrap;width:600px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/><\/div><\/td><td><div class=\"text codecolorer\">docker pull base<\/div><\/td><\/tr><\/tbody><\/table><\/div>\r\n\r\n\r\n<\/pre>\n<p>\u3053\u306e\u30b3\u30de\u30f3\u30c9\u306e\u51fa\u529b\u306f\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059:<\/p>\n<pre>\r\n\r\n<div class=\"codecolorer-container text mac-classic\" style=\"overflow:auto;white-space:nowrap;width:600px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/>3<br \/>4<br \/>5<br \/>6<br \/>7<br \/>8<br \/>9<br \/><\/div><\/td><td><div class=\"text codecolorer\">Pulling repository base from https:\/\/index.docker.io\/v1<br \/>\r\nPulling image 27cf784147099545 () from base<br \/>\r\nPulling 27cf784147099545 metadata<br \/>\r\nPulling 27cf784147099545 fs layer<br \/>\r\nDownloading 94863360\/? (n\/a)<br \/>\r\nPulling image b750fe7[...]2b4accb2c21d589ff2f5f2dc (ubuntu-quantl) from base<br \/>\r\nPulling b750fe79269d2[...]f05b433b1d1a02a62b4accb2c21d589ff2f5f2dc metadata<br \/>\r\nPulling b750fe79269d2[...]3ef05b4332b1d1a02a62b4accb2c289ff2f5f2dc fs layer<br \/>\r\nDownloading 10240\/? (n\/a)<\/div><\/td><\/tr><\/tbody><\/table><\/div>\r\n<\/pre>\n<p>(<em>\u3053\u3053\u3067\u3001\u3059\u3079\u3066\u306e <span class=\"text codecolorer\">docker<\/span> \u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u30de\u30b7\u30f3\u4e0a\u3067 docker daemon \u304c\u5b9f\u884c\u3055\u308c\u3066\u3044\u308b\u5fc5\u8981\u304c\u3042\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002Docker daemon \u304c\u5b9f\u884c\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u306b\u305d\u308c\u3092\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9\u3067\u5b9f\u884c\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u6b21\u306e\u3088\u3046\u306b\u5165\u529b\u3057\u307e\u3059: <span class=\"text codecolorer\">sudo docker -d &amp;<\/span><\/em>).<\/p>\n<p>\u3053\u308c\u3067\u3001<a href=\"https:\/\/index.docker.io\/\">Index Docker<\/a> \u306b\u516c\u958b\u3055\u308c\u305f\u30a4\u30e1\u30fc\u30b8\u3084\u81ea\u5206\u3067\u516c\u958b\u3057\u305f\u30a4\u30e1\u30fc\u30b8\u306a\u3069\u3001\u3059\u3079\u3066\u306e\u516c\u958b\u30a4\u30e1\u30fc\u30b8\u3092\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>Docker \u304c\u4f5c\u6210\u3057\u305f\u3059\u3079\u3066\u306e\u30a4\u30e1\u30fc\u30b8\u3092\u78ba\u8a8d\u3059\u308b\u306b\u306f\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059:<\/p>\n<pre>\r\n\r\n<div class=\"codecolorer-container text mac-classic\" style=\"overflow:auto;white-space:nowrap;width:600px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/><\/div><\/td><td><div class=\"text codecolorer\">docker images<\/div><\/td><\/tr><\/tbody><\/table><\/div>\r\n\r\n\r\n<\/pre>\n<p>\u3053\u306e\u30b3\u30de\u30f3\u30c9\u306e\u51fa\u529b\u306f\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059:<\/p>\n<pre>\r\n\r\n<div class=\"codecolorer-container text mac-classic\" style=\"overflow:auto;white-space:nowrap;width:600px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/>3<br \/>4<br \/>5<br \/><\/div><\/td><td><div class=\"text codecolorer\">REPOSITORY &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;TAG &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ID &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CREATED<br \/>\r\nbase &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ubuntu-quantl &nbsp; &nbsp; &nbsp; b750fe79269d &nbsp; &nbsp; &nbsp; &nbsp;10 weeks ago<br \/>\r\nbase &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;latest &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;b750fe79269d &nbsp; &nbsp; &nbsp; &nbsp;10 weeks ago<br \/>\r\nbase &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ubuntu-quantal &nbsp; &nbsp; &nbsp;b750fe79269d &nbsp; &nbsp; &nbsp; &nbsp;10 weeks ago<br \/>\r\nbase &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ubuntu-12.10 &nbsp; &nbsp; &nbsp; &nbsp;b750fe79269d &nbsp; &nbsp; &nbsp; &nbsp;10 weeks ago<\/div><\/td><\/tr><\/tbody><\/table><\/div>\r\n\r\n\r\n<\/pre>\n<p>\u3053\u306e\u7d50\u679c\u306f\u3001Ubuntu 12.10 \u306b\u57fa\u3065\u304f\u95b2\u89a7\u53ef\u80fd\u30d9\u30fc\u30b9\u30a4\u30e1\u30fc\u30b8\u304c\u5b58\u5728\u3059\u308b\u3053\u3068\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>Java \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>\u3053\u308c\u3067\u30a4\u30e1\u30fc\u30b8\u3092\u4f5c\u6210\u3057\u3066\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u6700\u521d\u306b Java \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u30d9\u30fc\u30b9\u30b3\u30f3\u30c6\u30ca\u30fc\u306e\u30b7\u30a7\u30eb\u3092\u8d77\u52d5\u3057\u307e\u3059:<\/p>\n<pre>\r\n\r\n<div class=\"codecolorer-container text mac-classic\" style=\"overflow:auto;white-space:nowrap;width:600px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/><\/div><\/td><td><div class=\"text codecolorer\">docker run -i -t base \/bin\/bash<\/div><\/td><\/tr><\/tbody><\/table><\/div>\r\n\r\n\r\n<\/pre>\n<p>\u3053\u306e\u30b3\u30de\u30f3\u30c9\u306f\u65b0\u898f\u30b3\u30f3\u30c6\u30ca\u30fc\u3092\u4f5c\u6210\u3057\u3001\u305d\u308c\u306b\u30e6\u30cb\u30fc\u30af\u306a ID \u3092\u4ed8\u4e0e\u3057\u3001IP \u30a2\u30c9\u30ec\u30b9\u3092\u5272\u308a\u5f53\u3066\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<p>\u30eb\u30fc\u30c8\u30b7\u30a7\u30eb\u304c\u8d77\u52d5\u3055\u308c\u307e\u3059:<\/p>\n<pre>\r\n\r\n<div class=\"codecolorer-container text mac-classic\" style=\"overflow:auto;white-space:nowrap;width:600px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/><\/div><\/td><td><div class=\"text codecolorer\">root@298af82e71ef:\/#<\/div><\/td><\/tr><\/tbody><\/table><\/div>\r\n\r\n<\/pre>\n<p>\u3053\u3053\u3067\u3001\u4ed6\u306e\u90e8\u5206\u304b\u3089\u9694\u96e2\u3055\u308c\u305f\u3053\u306e\u8efd\u91cf\u3067\u4eee\u60f3\u30de\u30b7\u30f3\u30e9\u30a4\u30af\u306a\u30b3\u30f3\u30c6\u30ca\u30fc\u306b\u5bfe\u3057\u3066\u5f93\u5c5e\u3059\u308b\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059:<\/p>\n<pre>\r\n\r\n<div class=\"codecolorer-container text mac-classic\" style=\"overflow:auto;white-space:nowrap;width:600px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/><\/div><\/td><td><div class=\"text codecolorer\">&nbsp;apt-get install software-properties-common<\/div><\/td><\/tr><\/tbody><\/table><\/div>\r\n<\/pre>\n<p>Java \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u5fc5\u8981\u306a <a href=\"https:\/\/help.launchpad.net\/Packaging\/PPA\">ppa<\/a> \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059:<\/p>\n<pre>\r\n<div class=\"codecolorer-container text mac-classic\" style=\"overflow:auto;white-space:nowrap;width:600px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/><\/div><\/td><td><div class=\"text codecolorer\">add-apt-repository ppa:webupd8team\/java<br \/>\r\napt-get update<\/div><\/td><\/tr><\/tbody><\/table><\/div>\r\n\r\n\r\n<\/pre>\n<p>Java \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059:<\/p>\n<pre>\r\n<div class=\"codecolorer-container text mac-classic\" style=\"overflow:auto;white-space:nowrap;width:600px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/><\/div><\/td><td><div class=\"text codecolorer\">apt-get install git curl oracle-java7-installer<\/div><\/td><\/tr><\/tbody><\/table><\/div>\r\n<\/pre>\n<p>(<em>\u30e9\u30a4\u30bb\u30f3\u30b9\u6761\u4ef6\u306e\u627f\u8afe\u3092\u624b\u52d5\u3067\u884c\u3044\u307e\u3059\u3002\u6b21\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u306f\u3053\u306e\u30d7\u30ed\u30bb\u30b9\u306f\u81ea\u52d5\u5316\u3055\u308c\u308b\u4e88\u5b9a\u3067\u3059<\/em>)<\/p>\n<p>\u3053\u3053\u307e\u3067\u3046\u307e\u304f\u3044\u304d\u307e\u3057\u305f\u3002\u3053\u308c\u3067\u3053\u306e\u30b3\u30f3\u30c6\u30ca\u30fc\u306e\u72b6\u614b\u3092\u30a4\u30e1\u30fc\u30b8\u3068\u3057\u3066\u4fdd\u5b58\u3059\u308b\u305f\u3081\u306e\u30b3\u30df\u30c3\u30c8\u306e\u4f5c\u6210\u304c\u53ef\u80fd\u3068\u306a\u308a\u307e\u305f\u3002<\/p>\n<p>(<span class=\"text codecolorer\">exit<\/span> \u307e\u305f\u306f <span class=\"text codecolorer\">CTRL-d<\/span>) \u3092\u5b9f\u884c\u3057\u3066\u30b3\u30f3\u30c6\u30ca\u30fc\u304b\u3089\u629c\u3051\u51fa\u3057\u3001<span class=\"text codecolorer\">docker ps -a<\/span> \u3092\u5b9f\u884c\u3057\u3066\u4f7f\u7528\u53ef\u80fd\u304b\u5426\u304b\u3092\u554f\u308f\u305a\u3059\u3079\u3066\u306e\u30b3\u30f3\u30c6\u30ca\u30fc\u306e\u30ea\u30b9\u30c8\u3092\u4f5c\u6210\u3059\u308b\u3068\u6b21\u306e\u3088\u3046\u306a\u51fa\u529b\u304c\u5f97\u3089\u308c\u307e\u3059:<\/p>\n<pre>\r\n\r\n\r\n<div class=\"codecolorer-container text mac-classic\" style=\"overflow:auto;white-space:nowrap;width:600px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/>3<br \/>4<br \/>5<br \/>6<br \/>7<br \/>8<br \/>9<br \/><\/div><\/td><td><div class=\"text codecolorer\">ID &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;IMAGE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;COMMAND &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CREATED &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; STATUS &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;PORTS<br \/>\r\n8e07a84ea97a &nbsp; &nbsp; &nbsp; &nbsp;base:latest &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\/bin\/bash &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 12 minutes ago &nbsp; &nbsp; &nbsp;Exit 0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br \/>\r\nfecada4ce303 &nbsp; &nbsp; &nbsp; &nbsp;base:latest &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\/bin\/bash &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 17 minutes ago &nbsp; &nbsp; &nbsp;Exit 0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br \/>\r\n9cb541022c5b &nbsp; &nbsp; &nbsp; &nbsp;base:latest &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\/bin\/bash &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 25 minutes ago &nbsp; &nbsp; &nbsp;Exit 127 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br \/>\r\na2914a38394d &nbsp; &nbsp; &nbsp; &nbsp;durdn\/base:latest &nbsp; &nbsp;\/bin\/bash &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 26 minutes ago &nbsp; &nbsp; &nbsp;Exit 0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br \/>\r\n6fa304872025 &nbsp; &nbsp; &nbsp; &nbsp;durdn\/base:latest &nbsp; &nbsp;\/bin\/bash &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 30 minutes ago &nbsp; &nbsp; &nbsp;Exit 0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br \/>\r\n3e0241227129 &nbsp; &nbsp; &nbsp; &nbsp;durdn\/base:latest &nbsp; &nbsp;\/bin\/bash &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 30 minutes ago &nbsp; &nbsp; &nbsp;Exit 0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br \/>\r\n98b400fcb5dc &nbsp; &nbsp; &nbsp; &nbsp;durdn\/base:latest &nbsp; &nbsp;\/bin\/bash &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 31 minutes ago &nbsp; &nbsp; &nbsp;Exit 0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br \/>\r\n88a113234c47 &nbsp; &nbsp; &nbsp; &nbsp;base:latest &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\/bin\/bash &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 36 minutes ago &nbsp; &nbsp; &nbsp;Exit 0<\/div><\/td><\/tr><\/tbody><\/table><\/div>\r\n\r\n\r\n\r\n<\/pre>\n<p>\u65b0\u898f\u30b3\u30f3\u30c6\u30ca\u30fc\u306e\u4e2d\u304b\u3089\u3001\u3059\u3079\u3066\u306e\u5f93\u5c5e\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u6700\u65b0\u306e\u30b3\u30f3\u30c6\u30ca\u30fc\u3092\u898b\u3064\u3051\u307e\u3059\u3002\u305d\u308c\u306b\u5bfe\u3057\u3066 <span class=\"text codecolorer\">docker commit<\/span> \u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u306b\u3088\u308a\u3001\u65b0\u3057\u3044\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u307e\u305f\u306f\u30a4\u30e1\u30fc\u30b8\u306e\u30b3\u30df\u30c3\u30c8\u304c\u53ef\u80fd\u3067\u3059:<\/p>\n<pre>\r\n\r\n<div class=\"codecolorer-container text mac-classic\" style=\"overflow:auto;white-space:nowrap;width:600px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/><\/div><\/td><td><div class=\"text codecolorer\">docker commit 8e07a84ea97a durdn\/java7<\/div><\/td><\/tr><\/tbody><\/table><\/div>\r\n\r\n\r\n<\/pre>\n<p>\u3055\u3089\u306b\u3001<span class=\"text codecolorer\">docker images<\/span> \u3068\u5165\u529b\u3059\u308b\u3053\u3068\u306b\u3088\u308a\u3001\u6b21\u306b\u793a\u3059\u3088\u3046\u306a\u30ea\u30b9\u30c8\u304c\u53d6\u5f97\u3067\u304d\u307e\u3059:<\/p>\n<pre>\r\n\r\n<div class=\"codecolorer-container text mac-classic\" style=\"overflow:auto;white-space:nowrap;width:600px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/>3<br \/>4<br \/>5<br \/>6<br \/>7<br \/>8<br \/><\/div><\/td><td><div class=\"text codecolorer\">docker images<br \/>\r\n<br \/>\r\nREPOSITORY &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;TAG &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ID &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CREATED<br \/>\r\ndurdn\/java7 &nbsp; &nbsp; &nbsp; &nbsp; latest &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ab6396541f9a &nbsp; &nbsp; &nbsp; &nbsp;2 hours ago<br \/>\r\nbase &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ubuntu-quantal &nbsp; &nbsp; &nbsp;b750fe79269d &nbsp; &nbsp; &nbsp; &nbsp;10 weeks ago<br \/>\r\nbase &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ubuntu-quantl &nbsp; &nbsp; &nbsp; b750fe79269d &nbsp; &nbsp; &nbsp; &nbsp;10 weeks ago<br \/>\r\nbase &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;latest &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;b750fe79269d &nbsp; &nbsp; &nbsp; &nbsp;10 weeks ago<br \/>\r\nbase &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ubuntu-12.10 &nbsp; &nbsp; &nbsp; &nbsp;b750fe79269d &nbsp; &nbsp; &nbsp; &nbsp;10 weeks ago<\/div><\/td><\/tr><\/tbody><\/table><\/div>\r\n\r\n\r\n<\/pre>\n<h2>Stash \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>\u3053\u308c\u3067\u3001\u65b0\u898f\u306b\u751f\u6210\u3055\u308c\u305f <span class=\"text codecolorer\">durdn\/java7<\/span> \u30a4\u30e1\u30fc\u30b8\u306b\u3001Java \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3 (\u3053\u3053\u3067\u306f <a href=\"http:\/\/www.atlassian.com\/software\/stash\/overview\">Stash<\/a>) \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30a4\u30e1\u30fc\u30b8\u306b\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u8ffd\u52a0\u3059\u308b\u65b9\u6cd5\u306f\u3044\u304f\u3064\u304b\u3042\u308a\u3001<span class=\"text codecolorer\">docker insert<\/span> \u30b3\u30de\u30f3\u30c9\u304c\u305d\u306e\u3072\u3068\u3064\u3067\u3059\u304c\u3001<span class=\"text codecolorer\">curl<\/span> \u3084 <span class=\"text codecolorer\">wget<\/span> \u3092\u4f7f\u3046\u65b9\u6cd5\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u65b0\u898f\u306b\u751f\u6210\u3055\u308c\u305f <span class=\"text codecolorer\">durdn\/java7<\/span> \u30a4\u30e1\u30fc\u30b8\u306b\u304a\u3044\u3066\u30b7\u30a7\u30eb\u3092\u8d77\u52d5\u3057\u3001\u30b3\u30f3\u30c6\u30ca\u30fc\u304b\u3089\u30db\u30b9\u30c8\u3078\u306e <span class=\"text codecolorer\">7990<\/span> \u756a\u30df\u30e9\u30fc\u30dd\u30fc\u30c8\u3092\u30aa\u30fc\u30d7\u30f3\u3059\u308b\u3068\u3068\u3082\u306b\u30c7\u30fc\u30bf\u3092\u683c\u7d0d\u3059\u308b\u305f\u3081\u306e\u56fa\u5b9a\u306e\u30db\u30fc\u30e0\u3092\u6307\u5b9a\u3057\u307e\u3059:<\/p>\n<pre>\r\n<div class=\"codecolorer-container text mac-classic\" style=\"overflow:auto;white-space:nowrap;width:600px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/>3<br \/><\/div><\/td><td><div class=\"text codecolorer\">docker run -i -t -p :7990 -v \/opt\/stash-home durdn\/java7 \/bin\/bash<br \/>\r\n<br \/>\r\nroot@afbf1fd4f78d:\/#<\/div><\/td><\/tr><\/tbody><\/table><\/div>\r\n\r\n<\/pre>\n<p>Stash \u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3059:<\/p>\n<pre>\r\n\r\n<div class=\"codecolorer-container text mac-classic\" style=\"overflow:auto;white-space:nowrap;width:600px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/><\/div><\/td><td><div class=\"text codecolorer\">root@afbf1fd4f78d:\/# curl -Lks http:\/\/www.atlassian.com\/software\/stash\/downloads\/binary\/atlassian-stash-2.4.2.tar.gz -o \/root\/stash.tar.gz<\/div><\/td><\/tr><\/tbody><\/table><\/div>\r\n<\/pre>\n<p>Stash \u3092\u30a2\u30f3\u30d1\u30c3\u30af\u3057\u3001<span class=\"text codecolorer\">STASH_HOME<\/span> \u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210\u3057\u3066\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u3057\u307e\u3059:<\/p>\n<pre>\r\n\r\n<div class=\"codecolorer-container text mac-classic\" style=\"overflow:auto;white-space:nowrap;width:600px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/>3<br \/>4<br \/><\/div><\/td><td><div class=\"text codecolorer\">root@202bf30a3b19:\/# mkdir \/opt\/stash<br \/>\r\nroot@202bf30a3b19:\/# tar zxf \/root\/stash.tar.gz --strip=1 -C \/opt\/stash<br \/>\r\nroot@202bf30a3b19:\/# mkdir \/opt\/stash-home<br \/>\r\nroot@202bf30a3b19:\/# export STASH_HOME=\/opt\/stash-home<\/div><\/td><\/tr><\/tbody><\/table><\/div>\r\n<\/pre>\n<p><strong>\u8d77\u52d5\u30a8\u30e9\u30fc\u3092\u56de\u907f\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u4ed6\u306e\u30db\u30b9\u30c8\u306b\u5bfe\u3059\u308b\u3053\u306e\u30db\u30b9\u30c8\u306e\u30e6\u30cb\u30fc\u30af ID\u3001<span class=\"text codecolorer\">202bf30a3b19<\/span> \u3092\u4ed8\u52a0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/strong><\/p>\n<p>\u3053\u308c\u3067 Stash \u3092\u8d77\u52d5\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059:<\/p>\n<pre>\r\n\r\n<div class=\"codecolorer-container text mac-classic\" style=\"overflow:auto;white-space:nowrap;width:600px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/><\/div><\/td><td><div class=\"text codecolorer\">root@202bf30a3b19:\/# \/opt\/stash\/bin\/start-stash.sh -fg<\/div><\/td><\/tr><\/tbody><\/table><\/div>\r\n\r\n<\/pre>\n<p><span class=\"text codecolorer\">http:\/\/localhost:7991\/stash<\/span> \u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066 Stash \u304c\u30b3\u30f3\u30c6\u30ca\u30fc\u5185\u3067\u5b9f\u884c\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044 (\u3053\u3053\u3067 Vagrant \u304c\u30db\u30b9\u30c8\u306e OSX \u306b\u30c7\u30fc\u30bf\u3092\u5f15\u304d\u6e21\u3059\u30dd\u30fc\u30c8\u3068\u3057\u3066\u3001<span class=\"text codecolorer\">7991<\/span> \u756a\u3092\u6307\u5b9a\u3057\u307e\u3057\u305f)\u3002\u3053\u308c\u3067\u671f\u5f85\u901a\u308a\u306b\u52d5\u4f5c\u3057\u307e\u3059:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/atlassian.wpengine.netdna-cdn.com\/wp-content\/uploads\/stash-login-600x408.png\" alt=\"stash-login\" width=\"600\" height=\"408\" class=\"alignnone size-large wp-image-25558\" \/><\/p>\n<p>\u3053\u3053\u3067\u3053\u306e\u30b3\u30f3\u30c6\u30ca\u30fc\u304b\u3089 <span class=\"text codecolorer\">exit<\/span> \u3057\u3001\u3053\u308c\u307e\u3067\u306e\u4f5c\u696d\u7d50\u679c\u3092\u518d\u5ea6\u5229\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u30b3\u30df\u30c3\u30c8\u3092\u8a2d\u5b9a\u3057\u307e\u3059:<\/p>\n<pre>\r\n\r\n<div class=\"codecolorer-container text mac-classic\" style=\"overflow:auto;white-space:nowrap;width:600px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/><\/div><\/td><td><div class=\"text codecolorer\">vagrant@vagrant-ubuntu-raring-64:~] $ docker commit aec2feb8cdea durdn\/stash<br \/>\r\neffd5d47b34f<\/div><\/td><\/tr><\/tbody><\/table><\/div>\r\n\r\n\r\n<\/pre>\n<p>\u3053\u3053\u3067\u3001<span class=\"text codecolorer\">aec2feb8cdea<\/span> \u306f\u3001<span class=\"text codecolorer\">docker ps -a<\/span> \u306b\u304a\u3044\u3066\u6700\u5f8c\u306b\u5909\u66f4\u304c\u884c\u308f\u308c\u305f\u30b3\u30f3\u30c6\u30ca\u30fc\u306e ID \u3067\u3059\u3002<br \/>\n\u305d\u306e\u7d50\u679c\u3068\u3057\u3066\u3001<span class=\"text codecolorer\">durdn\/stash<\/span> \u3068\u3044\u3046\u540d\u79f0\u306e\u3001Stash \u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u305f\u65b0\u305f\u306a\u30a4\u30e1\u30fc\u30b8\u304c\u751f\u6210\u3055\u308c\u307e\u3059:<\/p>\n<pre>\r\n\r\n<div class=\"codecolorer-container text mac-classic\" style=\"overflow:auto;white-space:nowrap;width:600px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/>2<br \/>3<br \/>4<br \/>5<br \/>6<br \/>7<br \/>8<br \/>9<br \/><\/div><\/td><td><div class=\"text codecolorer\">[vagrant@vagrant-ubuntu-raring-64:~] $ docker images<br \/>\r\n<br \/>\r\nREPOSITORY &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;TAG &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ID &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CREATED<br \/>\r\ndurdn\/java7 &nbsp; &nbsp; &nbsp; &nbsp; latest &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ab6396541f9a &nbsp; &nbsp; &nbsp; &nbsp;2 hours ago<br \/>\r\ndurdn\/stash &nbsp; &nbsp; &nbsp; &nbsp; latest &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;effd5d47b34f &nbsp; &nbsp; &nbsp; &nbsp;3 seconds ago<br \/>\r\nbase &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ubuntu-quantal &nbsp; &nbsp; &nbsp;b750fe79269d &nbsp; &nbsp; &nbsp; &nbsp;10 weeks ago<br \/>\r\nbase &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ubuntu-quantl &nbsp; &nbsp; &nbsp; b750fe79269d &nbsp; &nbsp; &nbsp; &nbsp;10 weeks ago<br \/>\r\nbase &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;latest &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;b750fe79269d &nbsp; &nbsp; &nbsp; &nbsp;10 weeks ago<br \/>\r\nbase &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ubuntu-12.10 &nbsp; &nbsp; &nbsp; &nbsp;b750fe79269d &nbsp; &nbsp; &nbsp; &nbsp;10 weeks ago<\/div><\/td><\/tr><\/tbody><\/table><\/div>\r\n\r\n\r\n<\/pre>\n<h2>\u30b3\u30f3\u30c6\u30ca\u30fc\u306e\u4e00\u6642\u6027\u3068\u7d99\u7d9a\u7684\u683c\u7d0d\u9818\u57df<\/h2>\n<p><strong>\u30b3\u30f3\u30c6\u30ca\u30fc\u306f\u4e00\u6642\u7684\u306a\u3082\u306e\u3067\u305d\u308c\u3092\u505c\u6b62\u3059\u308b\u3068\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u306e\u72b6\u614b\u306b\u5b8c\u5168\u306b\u30ea\u30bb\u30c3\u30c8\u3055\u308c\u307e\u3059\uff01<\/strong><\/p>\n<p>\u3053\u306e\u3053\u3068\u306f\u3001\u30b3\u30f3\u30c6\u30ca\u30fc\u3092\u505c\u6b62\u3059\u308b\u305f\u3073\u306b Stash \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3082\u30ea\u30bb\u30c3\u30c8\u3055\u308c\u308b\u3053\u3068\u3092\u610f\u5473\u3057\u307e\u3059\u3002\u5b9f\u884c\u3059\u308b\u305f\u3073\u306b\u751f\u6210\u3055\u308c\u308b\u30c7\u30fc\u30bf\u3092\u78ba\u5b9f\u306b\u4fdd\u5b58\u3059\u308b\u306b\u306f\u3001<span class=\"text codecolorer\">volumes<\/span> \u3092\u4f7f\u7528\u3057\u3066\u30b3\u30f3\u30c6\u30ca\u30fc\u9593\u3067\u306e\u5171\u6709\u3068\u7d99\u7d9a\u7684\u5229\u7528\u3092\u53ef\u80fd\u306b\u3057\u307e\u3059\u3002\u3053\u308c\u3092\u884c\u3046\u306b\u3042\u305f\u3063\u3066\u3001\u6211\u3005\u306f <span class=\"text codecolorer\">-volumes-from<\/span> \u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u3066\u4ee5\u524d\u306e\u30b3\u30f3\u30c6\u30ca\u30fc\u306e\u30dc\u30ea\u30e5\u30fc\u30e0\u3092\u518d\u5229\u7528\u3059\u308b\u7c21\u4fbf\u306a\u65b9\u6cd5\u3092\u63a1\u7528\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u30b3\u30f3\u30c6\u30ca\u30fc\u306e Stash \u3092\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u306a\u72b6\u614b\u3067\u8d77\u52d5\u3057\u307e\u3059 (<span class=\"text codecolorer\">-i<\/span> \u3092\u6307\u5b9a\u3059\u308b\u3068\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u306a\u72b6\u614b\u3067\u8d77\u52d5\u3057\u3001<span class=\"text codecolorer\">-t<\/span> \u3092\u6307\u5b9a\u3059\u308b\u3068\u305d\u308c\u306b\u7aef\u672b\u3092\u63a5\u7d9a\u3057\u307e\u3059):<\/p>\n<pre>\r\n\r\n\r\n<div class=\"codecolorer-container text mac-classic\" style=\"overflow:auto;white-space:nowrap;width:600px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/><\/div><\/td><td><div class=\"text codecolorer\">docker run -i -t -p :7990 -volumes-from aec2feb8cdea durdn\/stash \/bin\/bash -c 'STASH_HOME=\/opt\/stash-home \/opt\/stash\/bin\/start-stash.sh -fg'<\/div><\/td><\/tr><\/tbody><\/table><\/div>\r\n<\/pre>\n<p>\u4e0a\u306e\u5834\u5408 Stash \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306f\u30d5\u30a9\u30a2\u30b0\u30e9\u30a6\u30f3\u30c9\u3067\u8d77\u52d5\u3055\u308c\u307e\u3059\u304c\u3001\u30b3\u30f3\u30c6\u30ca\u30fc\u3092\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9\u3067\u5b9f\u884c\u3059\u308b\u5834\u5408\u306f\u3001<span class=\"text codecolorer\">-d<\/span> \u30d5\u30e9\u30b0\u3092\u4f7f\u7528\u3057\u307e\u3059:<\/p>\n<pre>\r\n\r\n<div class=\"codecolorer-container text mac-classic\" style=\"overflow:auto;white-space:nowrap;width:600px;\"><table cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td class=\"line-numbers\"><div>1<br \/><\/div><\/td><td><div class=\"text codecolorer\">docker run -d -p :7990 -volumes-from aec2feb8cdea durdn\/stash \/bin\/bash -c 'STASH_HOME=\/opt\/stash-home \/opt\/stash\/bin\/start-stash.sh -fg'<\/div><\/td><\/tr><\/tbody><\/table><\/div>\r\n\r\n<\/pre>\n<p>\u3054\u89a7\u304f\u3060\u3055\u3044\u3002Stash \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u304c\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9\u3067\u5b9f\u884c\u3055\u308c\u3001\u3057\u304b\u3082\u30c7\u30fc\u30bf\u306f\u5931\u308f\u308c\u307e\u305b\u3093\u3002\u3053\u306e\u3053\u3068\u306f <span class=\"text codecolorer\">docker ps<\/span> \u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u6b21\u306e\u30b9\u30c6\u30c3\u30d7<\/h2>\n<p>\u8a66\u3057\u3066\u307f\u305f\u3044\u3053\u3068\u306f\u4ed6\u306b\u3082\u305f\u304f\u3055\u3093\u3042\u308a\u307e\u3059\u3002\u4eca\u5f8c\u5229\u7528\u3059\u308b\u53ef\u80fd\u6027\u304c\u9ad8\u307e\u3063\u305f\u5834\u5408\u306f\u3001\u6b21\u306e\u3088\u3046\u306a\u69d8\u3005\u306a\u8208\u5473\u6df1\u3044\u70b9\u3067\u3053\u306e\u4f7f\u7528\u4f8b\u306e\u5185\u5bb9\u3092\u62e1\u5f35\u3057\u3066\u3044\u304d\u307e\u3059:<br \/>\n&#8211; <span class=\"text codecolorer\">Dockerfile<\/span> (<span class=\"text codecolorer\">Vagrantfile<\/span> \u3084 puppet recipe \u3068\u540c\u69d8\u306a\u30b3\u30f3\u30bb\u30d7\u30c8) \u3092\u5229\u7528\u3057\u3066\u624b\u9806\u3092\u52b9\u7387\u5316\u3057\u3001\u518d\u73fe\u6027\u3092\u5411\u4e0a\u3059\u308b\u3002<br \/>\n&#8211; PostgreSQL \u3092\u542b\u3080\u30b9\u30bf\u30f3\u30c9\u30a2\u30ed\u30fc\u30f3\u306e\u30b3\u30f3\u30c6\u30ca\u30fc\u3092\u8a2d\u5b9a\u3057\u3066\u307f\u308b\u3002 <br \/>\n&#8211; \u4ed6\u306e\u30a2\u30c8\u30e9\u30b7\u30a2\u30f3\u88fd\u54c1\u3068\u30ea\u30f3\u30af\u3055\u305b\u308b\u3002<br \/>\n&#8211; \u30a4\u30e1\u30fc\u30b8\u306e\u30a8\u30af\u30b9\u30dd\u30fc\u30c8\u3068\u30a4\u30f3\u30dd\u30fc\u30c8\u3092\u884c\u3046\u3002<\/p>\n<h2>\u7d50\u8ad6<\/h2>\n<p><a href=\"http:\/\/www.docker.io\/\">Docker<\/a> \u306e\u6c17\u306b\u5165\u3063\u305f\u70b9\u306f\u53cd\u5fdc\u6027\u304c\u975e\u5e38\u306b\u3088\u304f\u52d5\u4f5c\u3082\u6a5f\u654f\u306a\u3053\u3068\u3001\u305d\u3057\u3066\u305d\u306e\u52d5\u4f5c\u306b\u304a\u3051\u308b\u9ad8\u3044<em>\u6642\u9593\u518d\u73fe\u6027<\/em>\u3067\u3059\u3002\u591a\u6570\u306e\u30b3\u30f3\u30c6\u30ca\u30fc\u3092\u751f\u6210\u3059\u308b\u5834\u5408\u3067\u3082\u3001\u30d9\u30a2\u30e1\u30bf\u30eb\u3067\u8a72\u5f53\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u6642\u9593\u3068\u6587\u5b57\u901a\u308a\u306b\u540c\u4e00\u306e\u6642\u9593\u3057\u304b\u304b\u304b\u308a\u307e\u305b\u3093\u3002\u4eca\u5f8c\u3092\u697d\u3057\u307f\u306b\u3057\u3066\u6ce8\u76ee\u3057\u3066\u3044\u304d\u307e\u3059\uff01<\/p>\n<\/p><\/div>\n<p><!--\/postcontent--><\/p>\n<p><small><br \/>\n*\u672c\u30d6\u30ed\u30b0\u306f Atlassian Blogs \u306e\u7ffb\u8a33\u3067\u3059\u3002\u672c\u6587\u4e2d\u306e\u65e5\u6642\u306a\u3069\u306f\u6295\u7a3f\u5f53\u6642\u306e\u3082\u306e\u3067\u3059\u306e\u3067\u3054\u4e86\u627f\u304f\u3060\u3055\u3044\u3002<br \/>\n*\u539f\u6587 : 2013 \u5e74 6 \u6708 13 \u65e5 \"<a href=\"http:\/\/blogs.atlassian.com\/2013\/06\/deploy-java-apps-with-docker-awesome\/\" target=\"_blank\">Deploy Java Apps With Docker = Awesome<\/a>\"<br \/>\n<\/small><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Vagrant \u3092\u7528\u3044\u305f Java \u30d7\u30ed\u30d3\u30b8\u30e7\u30cb\u30f3\u30b0\u306b\u95a2\u3057\u3066\u79c1\u304c\u5c11\u3057\u524d\u306b\u66f8\u3044\u305f\u30d6\u30ed\u30b0\u3092\u601d\u3044\u51fa\u3059\u65b9\u3082\u3044\u3089\u3063\u3057\u3083\u308b\u304b\u3082\u77e5\u308c\u307e\u305b\u3093\u3002\u4eca\u65e5\u3054\u6848\u5185\u3059\u308b\u3082\u306e\u306f\u3001\u305d\u306e\u30e9\u30a4\u30d0\u30eb\u3067\u3042\u308a\u3001\u540c\u6642\u306b\u305d\u308c\u3092&hellip;<\/p>\n","protected":false},"author":275,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"bitbucket_subtitle":"","footnotes":""},"categories":[1],"tags":[347,348,349,204,350],"coauthors":[],"class_list":["post-2490","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-aufs","tag-containers","tag-docker","tag-java","tag-lxc"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.atlassian.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/2490","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.atlassian.com\/ja\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.atlassian.com\/ja\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.atlassian.com\/ja\/blog\/wp-json\/wp\/v2\/users\/275"}],"replies":[{"embeddable":true,"href":"https:\/\/www.atlassian.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=2490"}],"version-history":[{"count":0,"href":"https:\/\/www.atlassian.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/2490\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.atlassian.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=2490"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.atlassian.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=2490"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.atlassian.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=2490"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.atlassian.com\/ja\/blog\/wp-json\/wp\/v2\/coauthors?post=2490"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}