diff --git a/README.md b/README.md index 271b1ac1..69b21ab1 100644 --- a/README.md +++ b/README.md @@ -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 <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). diff --git a/doc/container.md b/doc/container.md index ed92bdb9..d34ad868 100644 --- a/doc/container.md +++ b/doc/container.md @@ -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). ### Multiple Networks