WiFiChallengeLab-docker
WiFiChallengeLab-docker copied to clipboard
Docker compose Interpolation Issue
Thanks for creating this nice project!
Just a tip, if you encounter the following error.
ERROR: Invalid interpolation format for "healthcheck" option in service "aps": "ip netns exec ns-ap /bin/bash -c ' curl -f -s http://localhost/login.php >/dev/null || exit 1; curl -s http://localhost:8080 >/dev/null || exit 2; if [ $(ps aux | grep host_aps_apd | grep -v grep | grep -c host_aps_apd) -ne 15 ]; then exit 3; fi'"
You need to convert the usual bash expansion from old school style backticks. That will be from $() to ``. Here is an example.
- if [ $(ps aux | grep host_aps_apd | grep -v grep | grep -c host_aps_apd) -ne 15 ]; then exit 3; fi'
+ if [ `ps aux | grep host_aps_apd | grep -v grep | grep -c host_aps_apd` -ne 15 ]; then exit 3; fi'
I'm running this docker compose version which I'm running inside a kali vm.
❯ docker-compose --version
docker-compose version 1.29.2, build unknown
I installed it from apt that's why the version is very old.