Which is the better option to self-host?

Alright. So here are the issues I encountered. Note that this was on my Pi.
First, I tried setting it up with the Docker installation guide for development. I encountered a problem eventually when running d/rails s, as it said that the container was restarting, and I had to wait until it has started. I simply stopped and deleted the container (this may not have been the best course of actions).
Then, I attempted to try the Ubuntu/Linux development guide (this one), but also couldn’t continue when I tried bundle install, saying that bundle was not found. I attempted to clone the repo to another folder and try, but to no avail.
Eventually, I rm -rfd both folders and uninstalled Docker, preparing for another battle with the terminal tomorrow.
Do you guys @merefield and @Jagster have any suggestions?