Update run.sh to run container in detached mode with restart policy and add example script for mac-monitor API

This commit is contained in:
Xavier Rodriguez
2025-12-09 14:33:37 +01:00
parent d2ae32a47a
commit f12e236e82
2 changed files with 14 additions and 1 deletions
+9
View File
@@ -0,0 +1,9 @@
curl -k -X POST "https://127.0.0.1:8443/mac-monitor" \
-H "Content-Type: application/json" \
-d '{
"host": "10.10.0.1",
"username": "ZabbixROT2c",
"password": "xxxxxxxxxx",
"port": 22,
"timeout": 30
}'
+5 -1
View File
@@ -1,3 +1,7 @@
#!/bin/bash #!/bin/bash
docker run --platform linux/amd64 -it localhost/cisco-friends:$(date +%Y%m%d%H) docker run -d --platform linux/amd64 \
--restart unless-stopped \
-p 127.0.0.1:8443:8443 \
--name cisco-friends \
localhost/cisco-friends:$(date +%Y%m%d%H)