Install ubuntu 18.04 and do the latest dist-upgrade dance.

Install java..

sudo apt install openjdk-8-jre-headless
sudo apt update; sudo apt -y dist-upgrade; sudo apt autoremove

install dependensies

sudo apt install mariadb-server mariadb-client git

sudo mysql -u root
CREATE DATABASE librenms;
CREATE USER 'librenms'@'localhost' IDENTIFIED BY 'supersecretpassword';
GRANT ALL ON librenms.* TO 'librenms'@'localhost' IDENTIFIED BY 'supersecretpassword' WITH GRANT OPTION;
FLUSH PRIVILEGES;
EXIT;

install docker

sudo apt-get remove docker docker-engine docker.io

sudo apt-get install \
    apt-transport-https \
    ca-certificates \
    curl \
    software-properties-common

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"

sudo apt-get update

sudo apt-get install docker-ce

sudo groupadd docker

sudo usermod -aG docker $USER

logout/logon

install docker-compose

sudo curl -L "https://github.com/docker/compose/releases/download/1.23.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

sudo chmod +x /usr/local/bin/docker-compose

install librenms docker-container

mkdir ~/src
cd ~/srcInstall java..
git clone https://github.com/librenms/docker.git

cp ~/src/docker/examples/compose/.env ~/src/docker/
cp ~/src/docker/examples/compose/docker-compose.yml ~/src/docker/
cp ~/src/docker/examples/compose/librenms.env ~/src/docker/

If you have other stuffz that listens on 80 and 443

cd docker
sed -i 's|published: 80|published: 8080|g' docker-compose.yml
sed -i 's|published: 443|published: 10443|g' docker-compose.yml
vim .env
DOMAINNAME=sumfink-cool.com
HOSTNAME=librenms

MYSQL_DATABASE=librenms
MYSQL_USER=librenms
MYSQL_PASSWORD=supersecretpassword

SMTP_SERVER=smtp.example.com
SMTP_USERNAME=smtp@example.com
SMTP_PASSWORD=

TZ=Europe/Stockholm
PUID=1000
PGID=1000

start compiling docker images

touch acme.json
chmod 600 acme.json
docker-compose up -d
docker-compose logs -f

If your default user [librnms/librenms] dont workm ,create an admin user (my default user always go bork)

docker exec -it --user librenms `docker container list | grep docker_app | awk {'print $1'}` php adduser.php admin password 10 admin@example.com

DONE

More information about this containersetup here » [https://github.com/librenms/docker]

And at last do not forget your well earned Coffee.