Errata

Docker for Rails Developers

Errata for Docker for Rails Developers

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.

Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted by Date submitted
PDF Page 86
when running rails server

I followed all the steps in the book. But at the moment we are running the command: `docker run -p 3000:3000 IMAGE_ID bin/rails s -b 0.0.0.0` I'm having an issue with webpacker

➜ myapp git:(master) ✗ docker run -p 3000:3000 f1a5fdb02ae2 bin/rails s -b 0.0.0.0
=> Booting Puma
=> Rails 6.1.1 application starting in development
=> Run `bin/rails server --help` for more startup options
Exiting
/usr/local/bundle/gems/webpacker-5.2.1/lib/webpacker/configuration.rb:99:in `rescue in load': Webpacker configuration file not found /usr/src/app/config/webpacker.yml. Please run rails webpacker:install Error: No such file or directory @ rb_sysopen - /usr/src/app/config/webpacker.yml (RuntimeError)


Webpacker is coming by default with ruby:2.6 base image

I fixed the issue removing the gem

Anonymous  Feb 04, 2021