SkillAgentSearch skills...

Docked

Running Rails from Docker for easy start to development

Install / Use

/learn @rails/Docked
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Docked Rails CLI

Setting up Rails for the first time with all the dependencies necessary can be daunting for beginners. Docked Rails CLI uses a Docker image to make it much easier, requiring only Docker to be installed.

Install Docker (and WSL on Windows). Then copy'n'paste into your terminal:

docker volume create ruby-bundle-cache
alias docked='docker run --rm -it -v ${PWD}:/rails -u $(id -u):$(id -g) -v ruby-bundle-cache:/bundle -p 3000:3000 ghcr.io/rails/cli'

Then create your Rails app:

docked rails new weblog
cd weblog
docked rails generate scaffold post title:string body:text
docked rails db:migrate
docked rails server

That's it! Your Rails app is running on http://localhost:3000/posts.

Sidenote

docked is not intended to replace a full development setup. It is merely a way for newcomers to quickly get started with Rails. The included dependencies stick to what you need when running rails new without additional options. It does not include dependencies for running with PostgreSQL or Redis for example.

View on GitHub
GitHub Stars1.3k
CategoryDevelopment
Updated21d ago
Forks64

Languages

Dockerfile

Security Score

95/100

Audited on Mar 12, 2026

No findings