From 679d64d496c54a88b71fc5eba9b4bd481f643550 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Sat, 20 May 2023 10:53:02 +0200 Subject: [PATCH] Update Hybrid Mode with podman example to start Docker containers Signed-off-by: Joachim Wiberg --- README.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 013c6e34..ddea5f44 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ possible to configure using NETCONF. At bootstrap Finit can optionally start scripts from a [run-parts(8)][] like directory: `/cfg/start.d`. To enable this mode, see the following -example: +examples: ```sh root@infix:~$ mkdir /cfg/start.d @@ -65,10 +65,23 @@ ln -s /cfg/frr/frr.conf /etc/frr/ initctl enable zebra initctl enable ospfd initctl enable bfdd +exit 0 EOF root@infix:/cfg/start.d$ chmod +x 10-enable-ospf.sh ``` +This is also the way to start containers (provided the images have been +downloaded with `podman pull` first): + +``` +root@infix:/cfg/start.d$ cat <20-enable-container.sh +#!/bin/sh +podman-service -e -d "Nginx container" -p "-p 80:80" nginx:alpine +exit 0 +EOF +root@infix:/cfg/start.d$ chmod +x 20-enable-container.sh +``` + Reboot to activate the changes. To activate the changes without rebooting, run the script and call `initctl reload`.