Further clarify how to use containers in Infix

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2023-06-28 08:57:42 +02:00
parent 15843f4325
commit 6d536e1b3f
2 changed files with 14 additions and 7 deletions
+7 -6
View File
@@ -84,18 +84,13 @@ EOF
root@infix:/cfg/start.d$ chmod +x 10-enable-ospf.sh
```
> **Note:** Neither [Frr](https://frrouting.org) (Zebra/OSPF/BFD) or
> [podman](https://podman.io) are enabled in default Infix builds.
> Please use customer specific builds, or enable it yourself in Infix by
> using `make menuconfig` followed by rebuilding the image.
This is also the way to start containers (provided the images have been
downloaded with `podman pull` first):
```
root@infix:/cfg/start.d$ cat <<EOF >20-enable-container.sh
#!/bin/sh
podman-service -e -d "Nginx container" -p "-p 80:80" nginx:alpine
podman-service -e -d "Nginx container" -p "-p 80:80 -v /cfg/www:/usr/share/nginx/html:ro" nginx:alpine
exit 0
EOF
root@infix:/cfg/start.d$ chmod +x 20-enable-container.sh
@@ -104,6 +99,12 @@ 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`.
> **Note:** Neither [Frr](https://frrouting.org) (Zebra/OSPF/BFD) or
> [podman](https://podman.io) are enabled in default Infix builds. Some
> customers have them enabled in their specific builds, and you can also
> enable it yourself in Infix by using `make menuconfig` followed by
> rebuilding the image.
For more information, see [Containers in Infix](doc/container.md).
+7 -1
View File
@@ -40,7 +40,13 @@ try to connect to the web server:
curl http://localhost
or connect to port 80 of your running Infix system with a browser.
or connect to port 80 of your running Infix system with a browser. See
the following sections for how to add more interfaces and start/stop the
container at boot/reboot.
> To add your own content to web server, place the HTML files in, e.g.,
> `/cfg/www/*.html` and add `-v /cfg/www:/usr/share/nginx/html:ro` to
> the command line (above). <https://hub.docker.com/_/nginx/>
### Multiple Networks