3

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

gstackoverflow
  • 36,709
  • 117
  • 359
  • 710
  • 1
    Here's a reference with all available commands, it doesn't include ifconfig. https://docs.docker.com/engine/reference/run/ – Nikolai Tenev Jan 11 '19 at 09:15

1 Answers1

5

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

Ntwobike
  • 2,406
  • 1
  • 21
  • 27