Re:LXC and LXD: a different container story
by divbzero on Friday September 23, 2022 @02:03PM
(#32955195)
Does LXC and LXD support the functional equivalent of Dockerfile or docker-compose.yml? I appreciate how Docker has become widely accepted for defining reproducible environments but have always found it to be rather heavy on resources.
[ Parent
| on HN ]
Re:LXC and LXD: a different container story
by depingus on Friday September 23, 2022 @02:48PM
(#32955628)
Not really. But LXD containers are built by layering commands. I use a bash script with the commands to create reproducible containers.
That said, LXD is good for containerizing OS's, not single applications. So when you say "defining reproducible environments" you can get reproducible containers, but not so much environments. In that sense, it behaves more like a VM.
Re:LXC and LXD: a different container story
by winstonschmidt on Friday September 23, 2022 @07:44PM
(#32958391)
You can use cloudinit with lxd to do something quite similar to a Dockerfile. I don't know anything like compose besides just bash scripts.