Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 871
gstackoverflow Avatar asked Oct 23 '25 20:10

gstackoverflow


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

like image 69
Ntwobike Avatar answered Oct 26 '25 12:10

Ntwobike



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!