[strongSwan] How to use swanctl in docker after running charon as entrypoint?

Glen Huang heyhgl at gmail.com
Thu Jan 4 15:40:32 CET 2018


Working flawlessly.

Thank you.

> On 4 Jan 2018, at 9:19 PM, Noel Kuntze <noel.kuntze+strongswan-users-ml at thermi.consulting> wrote:
> 
> Hi,
> 
> Use charon.start-scripts in strongswan.conf to load the config.
> 
> Kind regards
> 
> Noel
> 
> On 04.01.2018 07:17, Glen Huang wrote:
>> Hi,
>> 
>> I’m trying to put strongswan in docker, but the problem is I use swanctl, and I have no idea how to run swanctl in dockerfile after I run charon as entrypoint. Docker doesn’t have something like ExecStartPost that systemd has.
>> 
>> I searched in docker community and everybody said run command after entrypoint in dockerfile was the wrong approach, but given the dichotomy between charon and swanctl, I’m not sure how that can be achieved otherwise.
>> 
>> I wonder if it’s possible to ask swanctl to bring up charon and load-all in one go?
>> 
>> Regards,
>> Glen
> 



More information about the Users mailing list