mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-22 01:13:00 +02:00
Further clarify how to use containers in Infix
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user