I'm learning dokku right now for simple web deployment. Offical install instructions state this command:
wget -qO- https://raw.github.com/progrium/dokku/v0.3.12/bootstrap.sh | sudo DOKKU_TAG=v0.3.12 bash
I'm not a devop or admin, but as far as I understand this line, it performs all bootstrapping and installation under the root
account, thanks to sudo
. So dokku will be checked out into a directory with root
access rights, and all additional directories like /var/lib/dokku/
will also have root
access rights.
The problem is - all articles across the internet about dokku instructs to execute dokku
command or do dokku-related actions without sudo
. For example, instructions about this dokku
database plugin, https://github.com/krisrang/dokku-mariadb, instructs to install it via:
cd /var/lib/dokku/plugins
git clone https://github.com/krisrang/dokku-mariadb mariadb
dokku plugins-install
This is not working, since /var/lib/dokku/plugins
have root
access rights and git clone
will fail with acces denied
. It's hard to be a non-admin nowadays, but maybe someone will hint what I'm doing wrong? Do I need to install dokku some other way, or all dokku-related tutorials across internet assume that I'm executing them under root
(which is, by my limited admin knowledge, highly not recommended for security reasons).