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

유성배 sungbae.yoo at samsung.com
Tue May 12 01:48:22 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

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20150512/88630973/attachment.html>


More information about the lxc-users mailing list