Dokku Cheat Sheet

Show all running docker containers.

docker ps -a  

Tail the Rails logs.

docker logs -f <docker-container-id>  

Access the Rails console.

dokku run <app-name> rails console  

Run Rails migrations

dokku run disclosed 'rake db:migrate'  

Get a shell into the docker container. This allows you to look around.

dokku run <app-name> '/bin/bash'  

Restart a dokku container. Restarts the app.

docker restart <docker-container-id>  

Restart the entire docker service.

service docker restart  

Set an environment variable.

dokku config:set <app-name> ENV_VAR_NAME=value  

Anything else you found useful? Leave a comment and I'll add it in.