"docker works fine for prebuilt images, but..."
just use the Dockerfile the devs provide.
and build your docker image with them
$ lnd_version=v0.17.3-beta.rc1
$ apt install git
$ git clone https://github.com/lightningnetwork/lnd /tmp/lnd && cd /tmp/lnd
$ docker build . --build-arg checkout=$lnd_version -t lnd:$lnd_version
use your new docker-image (lnd:v0.17.3-beta.rc1) by replacing it in the docker-compose.yml (see video)
https://mastodon.satoshishop.de/@mk/111819231243916351