Dockerの運用について勉強中です。よろしくお願いいたします。
###環境
OS:Windows 10 HOME
Docker version :
Client:
Version: 1.12.0
API version: 1.24
Go version: go1.6.3
Git commit: 8eab29e
Built: Thu Jul 28 23:54:00 2016
OS/Arch: windows/amd64
Server: Version: 1.12.3 API version: 1.24 Go version: go1.6.3 Git commit: 6b644ec Built: Wed Oct 26 23:26:11 2016 OS/Arch: linux/amd64
docker-compose version:
docker-compose version 1.8.0, build d988a55
docker-py version: 1.9.0
CPython version: 2.7.11
OpenSSL version: OpenSSL 1.0.2d 9 Jul 2015
※DockerToolbox-1.12.0.exeを使って、dockerをインストールしました。
###作業内容
Dockerのクイックスタート・ガイド:Docker Compose と Railsを実行して、アプリケーションを起動する
内容は下記URLに記載してあります。
リンク内容
###困っている点
手順通り、任意のディレクトリにDockerifile, Gemfile, Gemfile.lock, docker-compose.ymlを作成して
docker-composeコマンドを叩いたのですが、下記のようにメッセージが出力されまして新しいアプリが作成されません。
$ docker-compose run -d web rails new . --force --database=postgresql --skip-bundle Creating network "quickstartguide_default" with the default driver Pulling db (postgres:latest)... latest: Pulling from library/postgres [0B066cd84a: Pulling fs layer [0B80b38d38: Pulling fs layer [0B06823821: Pulling fs layer [0B7ac202a9: Pulling fs layer [0Bb383ba3d: Pulling fs layer [0B418b46ce: Pulling fs layer [0Bd41b7758: Pulling fs layer [0B9522dd30: Pulling fs layer [0B548f9635: Pulling fs layer [0Bf7ef2ee5: Pulling fs layer Digest: sha256:3da198a1846d1fa6cf55978c8326d5c7e801155843c469ce9213cdbb25b5ae331.271 kB/1.271 kBB Status: Downloaded newer image for postgres:latest Creating quickstartguide_db_1 Building web Traceback (most recent call last): File "<string>", line 3, in <module> File "compose\cli\main.py", line 61, in mainp { text-indent: 1em; } File "compose\cli\main.py", line 113, in perform_command File "compose\cli\main.py", line 698, in run File "compose\cli\main.py", line 958, in run_one_off_container File "compose\service.py", line 269, in create_container File "compose\service.py", line 305, in ensure_image_exists File "compose\service.py", line 727, in build File "site-packages\docker\api\build.py", line 46, in build TypeError: You must specify a directory to build in path docker-compose returned -1
ご教授お願いいたします。
###補足情報
また、ディレクトリ構成は次のようになっています。
任意のディレクトリ/docker-compose.yml
__________________/ Dockerfile
__________________/ Gemfile
__________________/ Gemfile.lock
回答1件
あなたの回答
tips
プレビュー