quick-dokku-cheat-sheet

Containers:

#Get running containers:
docker ps

#Get all containers:
docker ps -a

#Stop container:
docker stop container_id

#Remove container:
docker rm container_id

Apps:

#Start/Stop/Restart app:
dokku ps:start myapp; 
dokku ps:stop myapp; 
dokku ps:restart myapp

#Restart ALL:
dokku ps:restartall

Logs:

#Read app log:
dokku logs myapp

Domains:

#Add domain:
dokku domains:add myapp mydomain; 

#Remove domain:
dokku domains:remove myapp mydomain

Config:

#Set env var:
dokku config:set myapp MY_ENV_VAR='value'

#Unset env var:
dokku config:unset myapp MY_ENV_VAR

#Set global env var:
dokku config:set MY_ENV_VAR='value' --global