Docker - Bash: IP: command not found

I'm currently trying to set up a hyperledger fabric network using docker toolbox, based on the guide HERE

When it comes to "Starting up validating peers" step, I followed and entered ip add into the terminal, but it returns bash: ip: command not found. Any solution? I've tried ifconfig as well and it's the same issue, command not found.

Using Docker Toolbox on Windows 10 Home

Thanks


Solution 1:

Install ip command package for Ubuntu.

apt update
apt install iproute2

Solution 2:

I have tried hostname -I. Working fine for me.No need to install a new package.