You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
$ ruby -r docker -e 'p Docker.version' /usr/local/share/ruby/gems/2.0/gems/docker-api-1.19.0/lib/docker/connection.rb:50:in `rescue in request': Expected([200, 201, 202, 203, 204, 304]) <=> Actual(404 Not Found) (Docker::Error::NotFoundError) from /usr/local/share/ruby/gems/2.0/gems/docker-api-1.19.0/lib/docker/connection.rb:38:in `request' from /usr/local/share/ruby/gems/2.0/gems/docker-api-1.19.
ã¯ããã« ä»æ´ã ãã©... 以åã« docker ã® Remote API ã触ã£ããã¨ããã£ãã Ruby ãããæ±ãããããªã®ã§è©¦ãã¦ã¿ã ååã®è¨äºã§ã Dashing ãã Remote API ã使ã£ã¦ãã åè Docker Remote API v1.10 ç´°ãããã¨ã¯ç½®ãã¨ã㦠éå¼ãâ¯â¯çãªæãã§ã gem ã¤ã³ã¹ãã¼ã« gem install docker-api --no-ri --no-rdoc -V 稼åä¸ã®ã³ã³ããä¸è¦§ã® ID ãåå¾ãã require 'docker' Docker.url="http://#{DOCKER_HOST}:4243/" cons = Docker::Container.all(:running => true) cons.each do |con| puts con.id end 以ä¸ã®ããã«ã³ã³ãã ID ãå¾ãããã ef1
ããã¾ããã§ãã... 24æ¥ã«ç»é²ããã¤ããã§ãã¾ããããã®è¨äºã¯ mod_mrubyã»ngx_mruby Advent Calendar 2014 23æ¥ ã®è¨äºã¨ãªãã¾ã... æ°ãåãç´ãã¦ã Dockerã§ãã«ãåãä½ãã ã¯ãªã¹ãã¹ãªã®ã§mod_mrubyãDockerã§ãã«ããã¾ãããã ãã«ãããã ãã§ãªãããã¤ããªãåãåºãã¦ã¿ã¾ãããã å ¬å¼ããã¨ã«ããããDockerfileãä½ãã FROM ubuntu:trusty MAINTAINER Uchio KONDO <[email protected]> ENV DEBIAN_FRONTEND noninteractive RUN apt-get -y update RUN apt-get -y install \ sudo git curl bison \ apache2 apache2-dev apache2-uti
ã¯ããã« å°ã åã®è©±é¡ã§æ縮ã§ãããDocker Hub Registryã®å ¬å¼ã¬ãã¸ããªã¨ãã¦ãè¤æ°ã®Language Stackãå ¬éããã¾ããã DOCKER HUB OFFICIAL REPOS: ANNOUNCING LANGUAGE STACKS ããã¯å種éçºè¨èªã®ããããã®ãã¼ã¸ã§ã³ãDockerã³ã³ããã§ç°¡åã«ä½¿ããããã«ãããã®ã§ãã ä¾ãã°Ubuntuã³ã³ããã§Rubyã使ãããå ´åã apt-getã§rubyãruby-devã®ã¤ã³ã¹ãã¼ã« apt-getã§rubygemsã®ã¤ã³ã¹ãã¼ã« gemã§bundlerã®ã¤ã³ã¹ãã¼ã« ã®ãããªãã¨ãDockerfileã§è¡ãå¿ è¦ãããã¾ããç¹å®ã®Rubyã®ãã¼ã¸ã§ã³ã使ããããªãæ´ã«rbenvãªã©ã使ããªãã¦ã¯ããã¾ãããããã¯ã¨ã¦ãé¢åèãã§ãããããLanguage Stackã®rubyã使ãã°ä¸æã§ç¹å®ãã¼ã¸ã§ã³ã®éçº
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}