Containers Schedule a script to run in the container
IX10 User Guide
802
3. Click System > Scheduled tasks > Custom scripts.
4. For Add Script, click .
The script configuration window is displayed.
5. (Optional) For Label, type container_script.
6. For Run mode, select Interval.
7. For Interval, type 10s.
8. For Commands, type the following:
lxc container_name /bin/ping -c 1 IP_address
For example:
lxc test_lxc /bin/ping -c 1 192.168.1.146
9. Click to disable Sandbox. Sandbox restrictions are not necessary when a container is used.
10. Click Apply to save the configuration and apply the change.
Command line