[lxc-users] How to run scripts when container is destroyed?

유성배 sungbae.yoo at samsung.com
Tue May 12 00:46:59 UTC 2015


Hi,

I’m making a template script for container.
I want to install some packages when container is created
and uninstall the packages when container is destroyed.

The former can be resolved simply by insert package command into template.
How to resolve the latter? Is there no way to insert any hook script in
destroy?

Best regards,
Sungbae Yoo



More information about the lxc-users mailing list