Start additional service when oci lxc container starts

vovo500

New Member
Dec 22, 2025
8
1
3
In oci images, there is no rc-service...
Is there something like a Hook script which gets called at startup?
How can I make sure, a certain command is started in case of container start?

Example use case:
A container based on a docker images needs to provide a samba share, which is not part of the oci image.
It's possible to install samba, but the service needs to be started automatically at startup.

How can this be achieved?

Thank you,

Volkmar
 
I just found out, that this is possible via
Proxmox LXC hookscripts and pct exec

Thank you,

Volkmar
 
  • Like
Reactions: news