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.

  • Spotify docker-gc: prevent auto stop after first run
  • How can I find the docker name from a program running inside Docker
  • Multiple docker containers accessible by nginx reverse proxy
  • How to monitor Nodejs app running on Kubernetes
  • Rancher external subdomains
  • Docker nfs4 mount on Elastic Beanstalk
  • fig.yml

      image: "postgres:9.3"
        - 5432
        - ./data:/var/lib/postgresql/data/
      build: .
      command: bundle exec rails server
        - .:/usr/src/app/
        - "3000:3000"
        - db


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

  • How to properly run Docker on Google Compute Engine (auto restart)
  • ignore service volumes_from
  • Delete logs of containers docker for mac
  • MobileBackups folders interfering with Jenkins use of Docker slave
  • Flask app doesn't retrieve data from same database as unit tests
  • Using Docker to launch web app, can't connect to Postgresql DB?
  • 2 Solutions collect form web for “invalid argument creating a ruby dev env with docker & fig”

    I think you have some rare character or problematic encoding. I have run your files and from docker/fig side it seems to work nicely. The output I get when fig up:

    Recreating fig_db_1...
    Recreating fig_web_1...
    Attaching to fig_db_1, fig_web_1
    db_1  | LOG:  database system was shut down at 2014-12-30 09:06:55 UTC
    db_1  | LOG:  database system is ready to accept connections
    db_1  | LOG:  autovacuum launcher started
    web_1 | Could not locate Gemfile
    fig_web_1 exited with code 10
    Gracefully stopping... (press Ctrl+C again to force)
    Stopping fig_db_1...

    Try copying&pasting the code you have put here. I have found similar issues with fig and you have to take care of indentation and format. I hope this helps.


    Turned the computer off and then on again.


    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.