wifi-connect icon indicating copy to clipboard operation
wifi-connect copied to clipboard

wget and nmcli not found when checking network connectivity

Open philippegirard opened this issue 5 years ago • 1 comments

problem

when trying to check network connectivity in start.sh I was getting:

start.sh: line 20: wget: command not found and start.sh: line 17: nmcli: command not found

I use a very bare configuration with only the two following files: start.sh Dockerfile.template

solution

In Dockerfile.template change:

RUN install_packages dnsmasq wireless-tools for RUN install_packages dnsmasq wireless-tools wget network-manager

philippegirard avatar Dec 16 '19 16:12 philippegirard

You uncommented the lines in start.sh which run wget or nmcli, in which case you correctly realised you need also to add the necessary packages to your Dockerfile.

Dockerfile.template in the repo has '.template' in the name -- you are expected to customise it to the needs of your application and any changes you make to start.sh, as noted in the readme.

Everything seems to have worked as intended. What is the purpose of this ticket you have raised?

HughWarrington avatar Jun 18 '20 18:06 HughWarrington