Discourse containers are built using the app.yml template, and any required packages must be installed during the image build process (i.e., when running ./launcher rebuild app). Packages cannot be installed interactively from within a running container.
As a result, common tools like net-tools (which provides netstat) are typically not included and cannot be easily added after the container is running.
If you need netstat inside the container, you’ll need to add it to your app.yml and then rebuild the container.