Dokku FQDN Setup

After I ran the dokku installation script on my fresh new Ubuntu system, the console outputed such error:

This installation script requires that you have a hostname set for the instance. Please set a hostname for in your /etc/hosts

The solution, indeed, is fairly simple. You only need to add the following lines to the /etc/hosts and /etc/hostname files:

// This line goes to /etc/hosts

// This line must be included in your /etc/hostname file

Then, you can test it by hostname -f.

Subscribe to TheXYZLab Blog

Don’t miss out on the latest issues. Sign up now to get access to the library of members-only issues.