Most linux distributions have netstat pre-installed. This article will solely address the error that occurs when netstat is not installed. netstat was not pre-installed on the majority of the Docker containers I used.
Source: LXer – Fixed bash: netstat: command not found