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.

  • How to start redis-server and a node.js app on the same container?
  • How to use environment variables in docker compose
  • In Docker swarm mode, is there a way to get managers' information from workers?
  • Docker: Not a valid repository:
  • Automate creation of a VM with Docker containers running inside
  • Docker: user namespace remapping not working although enabled for daemon
  • 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

  • Can anyone help me to create Dockerfile for my tomcat copy?
  • Installing phantomjs with node in docker
  • Query docker embedded dns from host
  • Bluemix docker scalable group for non HTTP requests
  • Docker Entrypoint script cannot get $DB_PORT_3306_TCP_ADDR environment variable
  • Running multiple commands on the same container using docker-py
  • 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.