Improve This Doc

Debian Package Installation Notes

As of 0.3.18, Dokku defaults to being installed via debian package. While certain hosts may require extra work to get running, you may optionally wish to automate the installation of Dokku without the use of our bash script. The following are the steps run by said script:

# install prerequisites
sudo apt-get update -qq > /dev/null
sudo apt-get install -qq -y apt-transport-https

# install docker
wget -nv -O - | sh

# install dokku
wget -nv -O - | apt-key add -
echo "deb trusty main" | sudo tee /etc/apt/sources.list.d/dokku.list
sudo apt-get update -qq > /dev/null
sudo apt-get install -qq -y dokku
sudo dokku plugin:install-dependencies --core

Unattended installation

In case you want to perform an unattended installation of dokku, this is made possible through debconf, which allows you to configure a package before installing it.

You can set any of the below options through the debconf-set-selections command, for example to enable vhost-based deployments:

echo "dokku dokku/vhost_enable boolean true" | sudo debconf-set-selections

After setting the desired options, proceed with the installation as described above.

debconf options

Name Type Default Description
dokku/web_config boolean true Use web-based config for below options
dokku/vhost_enable boolean false Use vhost-based deployments (e.g.
dokku/hostname string Hostname, used as vhost domain and for showing app URL after deploy
dokku/skip_key_file boolean false Don't check for the existence of the dokku/key_file. Warning: This setting this to true, will require you to manually add an SSH key later on.
dokku/key_file string /root/.ssh/ Path on disk to an SSH key to add to the Dokku user (Will be ignored on dpkg-reconfigure)
  v: master
On GitHub

Free document hosting provided by Viewdocs.