This is my second post on LXD containers. Sometimes, using a container is a cleaner way to install and use applications for a number of reasons:
- You can install packages from any version of any distribution. That means, even if you are using an LTS release of Ubuntu like me, you don't necessarily have to stick to an older version of a package. Or if some package is only supported on rpm based distributions, you don't need to worry about it.
- You can go ahead and completely uninstall/reinstall it at any time without worrying about residual files or configurations.
- You can roll back to a previous state in no time if something goes wrong unexpectedly (lxd snapshots!)
- And then there is the security perspective also (lxd containers are secure by nature).
Last weekend I tried running mysql database from a local container and connect to it from my local system. Here's how: