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

It’s a simple article on how to run a Node.js app in an 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.

1 Like

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

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

thanks, will try that

I added following and it works
systemctl enable chalktalk.service

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