Bash: ip: command not found?

Hi,

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 follow 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

I think in there they imply that you are SSHed into the VM, where ip command should be available. You want something like docker-machine ssh to spawn a SSH shell first.

I’m having a similar problem. The ip command doesn’t seem to be present.

root@b3a02173dad2:/# which ip
root@b3a02173dad2:/#

Version:

PS C:\Users\jeffs> docker version
Client:
 Version:           18.06.0-ce
 API version:       1.38
 Go version:        go1.10.3
 Git commit:        0ffa825
 Built:             Wed Jul 18 19:05:28 2018
 OS/Arch:           windows/amd64
 Experimental:      false

Server:
 Engine:
  Version:          18.06.0-ce
  API version:      1.38 (minimum version 1.12)
  Go version:       go1.10.3
  Git commit:       0ffa825
  Built:            Wed Jul 18 19:13:46 2018
  OS/Arch:          linux/amd64
  Experimental:     false
PS C:\Users\jeffs>
root@b3a02173dad2:/# uname -a
Linux b3a02173dad2 4.9.93-linuxkit-aufs #1 SMP Wed Jun 6 16:55:56 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
root@b3a02173dad2:/#
root@b3a02173dad2:/# more /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.1 LTS"
root@b3a02173dad2: 

What I find even more confusing is that I can’t install the ip command using apt, and iproute2 is not in /var/lib/dpkg/available:

root@b3a02173dad2:/# !5
apt install iproute2
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package iproute2
root@b3a02173dad2:/#
root@b3a02173dad2:/# fgrep iproute2 /var/lib/dpkg/available
root@b3a02173dad2:/#docker-for-mac 

I think the right way to proceed is to add a ubuntu repository and then run apt install again. But that seems rather extreme and I wonder if there is a better solution?