Why “ifconfig” docker command responds "bash: ifconfig: command not found" on Windows?

Viewed 3790

I installed docker on my windows PC.

I opened console and typed docker ps. That command works properly. Next I tried to execute command if config but it was not found:

$ ifconfig
bash: ifconfig: command not found

Is it because of Windows ?

P.S.

Command docker network ls also works properly

1 Answers

Finding current TCP/IP network configuration values doesn't have nothing to do with docker, those applications coming with your os.

  • for windows ipconfig -> wiki
  • for mac ifconfig -> wiki
  • for linux use ip related commands for ex: to get the ip address ip addr show

NOTE: in linux ifconfig might work but its deprecated.

more about ifconfig vs ip you can read in this blog

Related