Cheatography
https://cheatography.com
App Commandscreate app | dokku apps:create <name>
| clone some app | dokku apps:clone <name>
| destroy app | dokku apps:destroy <name>
| list existing apps | dokku apps:list
| rename app | dokku apps:rename <name>
| get report for app | dokku apps:report <name>
|
Process managmentlist process inside container | dokku ps:report <name>
| rebuild container | dokku ps:rebuild <name>
| restart process inside container | dokku ps:restart <name>
| scale process inside container | ps:scale <name> <proc>=<count> [<proc>=<count>]
| rename app | dokku apps:rename <name>
| get report for app | dokku apps:report <name>
|
SCALING
Dokku allows you to run multiple process types at different container counts. For example, if you had an app that contained 1 web app listener and 1 background job processor, dokku can, spin up 1 container for each process type defined in the Procfile. By default, dokku will only start a single web process (if defined.) However, if you wanted, for example, 2 job processors running simultaneously, you can modify this behavior in one of the following ways.
proxy NGINX and ports configurationenable proxy for app | dokku proxy:enable <app>
| disable proxy | dokku proxy:disable <app>
| show proxy status for app | dokku proxy:report <app>
| list proxy ports | dokku proxy:ports <app>
| add proxy port | dokku proxy:ports-add <app> <scheme|http>:<host-port|80>:<container-port|5000>
| remove proxy port | dokku proxy:ports-remove <app> <scheme|http>:<host-port|80>:<container-port|5000>
| clear ports | dokku proxy:ports-clear <app>
|
Dokku will extract all tcp ports exposed using the EXPOSE
FROM ubuntu:14.04
EXPOSE 1234
RUN python -m SimpleHTTPServer 1234
| | Logs,info and ENVget report for app | dokku apps:report [<app>]
| get logs | dokku logs <name>
| set env variable | dokku config:set [--no-restart] <name> <VARIABLE>=<VALUE>
| remove env variable | dokku config:unset [--no-restart] <name> <VARIABLE>=<VALUE>
| get DB info | dokku postgres:info <name>
| get proxy/ports info | dokku proxy:ports <name>
| know proxy is enable | dokku proxy:report <name>
| get NGINX errors | dokku nginx:error-logs <name>
|
Postgres integrationcreate db | dokku postgres:create <name>
| link db to app | dokku postgres:link <db-name> <app-name>
| list db's | dokku postgres:list
| connect via psql | dokku postgres:connect <name>
| expose port for external connection | dokku postgres:expose <name>
| export dump | dokku postgres:export <name> > <file>
| destroy db | dokku postgres:destroy <name>
| get info for db | dokku postgres:info <name>
|
other commandsupload public key | cat /home/<user>/.ssh/<public-key>.pub | ssh <user>@<ip> "sudo sshcommand acl-add dokku <key-name>"
| execute command inside docker container | dokku --rm run <name> <command:python|node|npm|> [args]
|
useful linksdokku plugins | | CD gitlab | | useful dokku ports plugin | |
|
Help Us Go Positive!
We offset our carbon usage with Ecologi. Click the link below to help us!
Created By
Metadata
Comments
No comments yet. Add yours below!
Add a Comment
Related Cheat Sheets