Docker Rails Tutorial generated files not exists

I am trying basic Docker & Rails tutorials on my windows10 home OS with Docker toolbox.

Client: 17.05.0-ce
Server: 17.06.0-ce

And hello-world tutorials works!

  • Docker-machine - IP address conflict
  • Is it possible to link existing containers with docker?
  • Image successfully builds but won't push due to auth credentials
  • How to use Docker in Windows ?
  • How do I add a container user to a user group in the Docker host?
  • Arch Linux, Docker “No space left on device.”
  • Now I am trying this youtube tutorial: https://www.youtube.com/watch?v=KH6pcHb6Wug&lc=z12ocxayznynslzjj04chbtgiwbhuf4z5xk0k.1499518307572479

    And everything looks okay until I check rails generated project files.
    In terminal showing like files are generating but when I use the command ‘ls -l’ its show only my manually created files (4).

    What’s happening with Rails generated files?
    Where they go?

    Here is docker-compose.yml content:

    version: '2'
    services:
      db:
        image: postgres
      web:
        build: .
        command: bundle exec rails s -p 3000 -b '0.0.0.0'
        volumes:
          - .:/deep
        ports:
          - "3000:3000"
        depends_on:
          - db
    

    Here is Dockerfile content:

    FROM ruby:2.3.3
    
    ENV HOME /home/rails/deep
    
    # Install PGsql dependencies and js engine
    RUN apt-get update -qq && apt-get install -y build-essential libpq-dev nodejs
    
    WORKDIR $HOME
    
    # Install gems
    ADD Gemfile* $HOME/
    RUN bundle install
    
    # Add the app code
    ADD . $HOME
    

    Here is my terminal at end: https://ibb.co/c2eqFF

    I found the solution:
    https://github.com/laradock/laradock/issues/508

    Just need to place a .env file next to your docker-compose.yml file, with the following content : COMPOSE_CONVERT_WINDOWS_PATHS=1

  • Docker: Reconnect new postgres container to existing Data container
  • how to make docker client connect to docker daemon over http
  • Where is docker's apparmor profile?
  • How can I determine if a specific tag is available for an image
  • Docker commands fails (in Windows)
  • Eureka cluster and docker-compose: Registering with host even when I set preferIpAdress: true
  • One Solution collect form web for “Docker Rails Tutorial generated files not exists”

    I found the solution: https://github.com/laradock/laradock/issues/508

    Just need to place a .env file next to your docker-compose.yml file, with the following content : COMPOSE_CONVERT_WINDOWS_PATHS=1

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