How to map static IP address using dnsmasq under LXD (Linux containers)

Posted on in Categories , , , , last updated January 23, 2017

I am using LXD (Linux container) to host Apache, MySQL, Perl and PHP-based app. I would like to assign or map fixed IP address to my MySQL container. How do I allow dnsmasq DHCP server to assign a static IP address to LXD container based on name or MAC address?