HOWTO: How to run a Node.js app in an LXD container


#1

It's a simple article on how to run a Node.js app in an LXD container,
https://blog.simos.info/how-to-install-a-node-js-app-in-a-lxd-container/

Ideally, you would create a container image out of the fresh Node.js installation, then reuse that for future Node.js apps.
I waded through the official instructions of the app in order not to require to run chromium-browser inside the container, thus making it as simple as possible.


#2

Nice article, Thanks. one question, how to auto start the app when the container starts?


#3

Thanks!
I have updated the article with instructions on how to create a systemd service file.


#4

thanks, will try that


#5

I added following and it works
systemctl enable chalktalk.service


#6

Thanks for going through the article and finding the omission!
I added the command to enable the service.