Skip to content

Note dockerfile-rails gem requirement in Rails Dockerfiles guide#2421

Merged
kcmartin merged 1 commit into
mainfrom
add-dockerfile-rails-gem-callout
Jul 2, 2026
Merged

Note dockerfile-rails gem requirement in Rails Dockerfiles guide#2421
kcmartin merged 1 commit into
mainfrom
add-dockerfile-rails-gem-callout

Conversation

@kcmartin

@kcmartin kcmartin commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Running bin/rails generate dockerfile on an older Rails app that predates the dockerfile-rails gem fails with Could not find generator 'dockerfile'., with no guidance in the docs. This adds a callout in the Updates section pointing users to add the gem first.

Supersedes #1184 (same idea; this version fixes a typo, links the canonical rubys/dockerfile-rails repo to match the rest of the page, and uses the standard callout markup).

Running 'bin/rails generate dockerfile' on an older Rails app that
predates the dockerfile-rails gem fails with 'Could not find generator
dockerfile'. Add a callout pointing users to add the gem first.

Supersedes #1184.
@kcmartin kcmartin merged commit d0660a9 into main Jul 2, 2026
1 of 2 checks passed
@kcmartin kcmartin deleted the add-dockerfile-rails-gem-callout branch July 2, 2026 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant