I think this is the best tutorial to follow to get Docker and Portainer installed in Ubuntu or Debian.
https://www.wundertech.net/portainer-...
You can use the end of this guide that shows how to configure Portainer after it's up and running.
https://mariushosting.com/how-to-inst...