Reputation: 823
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
Upvotes: 81
Views: 125222
Reputation: 557
I have tried hostname -I
. Working fine for me. No need to install a new package.
Upvotes: 29
Reputation: 46351
Install ip
command package for Ubuntu.
apt update
apt install iproute2
Upvotes: 136
Reputation: 71
for command ip
not found in centos 7, you can use yum install iproute -y
to fix.
for command ifconfig
not found in centos 7, you can use yum install net-tools -y
to fix.
Upvotes: 7
Reputation: 570
Although OP was on Windows 10. I landed on this question searching for a fix for macOS and didn't find this answer for a while. So I'm linking it here as well just in case
You can install ip
tool on OS X via brew:
brew install iproute2mac
Upvotes: 3
Reputation: 1210
Unfortunately, your link has been broken (or it might be inaccessible from Iran). Although there is not enough evidence of which Linux OS you are trying to use, a solution is provided as follow work under .deb (e.g. Ubuntu) and .rpm (e.g. Fedora) package managers.
At first, update the container's repository: Ubuntu:
apt-get update
CentOS:
yum update
Fedora:
dnf update
Secondly, install net-tools package. Ubuntu:
apt-get install net-tools
CentOS:
yum install net-tools
Fedora:
dnf install net-tools
Lately, ifconfig has been replaced with ip command. So make sure to check both commands, some Linux distributions have not changed the command yet.
Upvotes: 16
Reputation: 11265
Your link doesn't work.
Do docker ps
or docker images
in GitBash to see if the docker containers and images are running.
I recommend installing Docker Community Edition if you are running Win 10. Make sure u have Hyper-V enabled.
Upvotes: 0