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.

  • Certificate errors after changing docker location on windows
  • Link & Expose Docker Container Simultaniously
  • Intermittent slow response from Dockerized NodeJS app
  • Which is the Dockerfile encoding?
  • Using the RUN instruction in a Dockerfile with 'source' does not work
  • Import data.sql MySQL Docker Container
  • 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
    

  • How to persist MySQL container on Windows 10 between reboots
  • How can I use the base image to create my own without the dependency?
  • Dockerfile built-in environment variables documentation
  • run “docker run” from crontab
  • Setting the Docker's container environnement (Env) via the docker remote api
  • How to run uWSGI and NGINX in different Docker containers
  • 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.

    TL;DR

    Turned the computer off and then on again.

    Resolved.

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