Add code from Docker (bless them!) for NLM

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>