Search code examples
rubydockerfig

invalid argument creating a ruby dev env with docker & fig


Attempting to get a dev environment setup with fig and docker and I continually receive an 'invalid argument' error.

$ fig up
Recreating website_db_1...
Recreating website_web_1...
invalid argument

The Dockerfile builds via both fig and docker.

fig.yml

db:  
  image: "postgres:9.3"
  ports:
    - 5432
  volumes:
    - ./data:/var/lib/postgresql/data/

web:  
  build: .
  command: bundle exec rails server
  volumes:
    - .:/usr/src/app/
  ports:
    - "3000:3000"
  links:
    - db

Dockerfile

FROM ruby:1.9.3-p547
RUN bundle config --global frozen 1
RUN mkdir -p /usr/src/app

Solution

  • TL;DR

    Turned the computer off and then on again.

    Resolved.