docker-archive / toolbox

The Docker Toolbox
https://docker.com/toolbox
3.2k stars 1.23k forks source link

Docker Commands Extremely Slow #746

Open bantl23 opened 6 years ago

bantl23 commented 6 years ago

Fresh install, when I execute docker info it takes about 3min30sec to return.

When I use docker within the boot2docker vm (docker-machine ssh default) the response are very quick. So I think its somehow related to networking. However, I'm not sure what to look for to fix this. Any ideas?

I've included output from docker version, docker info, ipconfig /all, and route print

Platform: Windows 10 VM Provider: Virtual Box Docker: Docker Toolbox

I'm using MINGW64 which has the time command

docker version:

λ time docker version
Client:
 Version:       18.03.0-ce
 API version:   1.37
 Go version:    go1.9.4
 Git commit:    0520e24302
 Built: Fri Mar 23 08:31:36 2018
 OS/Arch:       windows/amd64
 Experimental:  false
 Orchestrator:  swarm

Server:
 Engine:
  Version:      18.03.0-ce
  API version:  1.37 (minimum version 1.12)
  Go version:   go1.9.4
  Git commit:   0520e24
  Built:        Wed Mar 21 23:14:54 2018
  OS/Arch:      linux/amd64
  Experimental: false

real    1m40.430s
user    0m0.000s
sys     0m0.015s

docker info:

λ time docker info
Containers: 0
 Running: 0
 Paused: 0
 Stopped: 0
Images: 4
Server Version: 18.03.0-ce
Storage Driver: aufs
 Root Dir: /mnt/sda1/var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 18
 Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: cfd04396dc68220d1cecbe686a6cc3aa5ce3667c
runc version: 4fc53a81fb7c994640722ac585fa9ca548971871
init version: 949e6fa
Security Options:
 seccomp
  Profile: default
Kernel Version: 4.9.89-boot2docker
Operating System: Boot2Docker 18.03.0-ce (TCL 8.2.1); HEAD : 404ee40 - Thu Mar 22 17:12:23 UTC 2018
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 3.858GiB
Name: default
ID: 64GQ:UQQY:KMEA:LKM5:PYNZ:FIZ6:LQBZ:OWEG:AWNX:E3DN:WTNW:P4BK
Docker Root Dir: /mnt/sda1/var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Labels:
 provider=virtualbox
Experimental: false
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false

real    3m31.353s
user    0m0.000s
sys     0m0.031s

Virtualbox Network:

Ethernet adapter VirtualBox Host-Only Network:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : VirtualBox Host-Only Ethernet Adapter
   Physical Address. . . . . . . . . : 0A-00-27-00-00-07
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::c452:8353:8024:c9fb%7(Preferred)
   IPv4 Address. . . . . . . . . . . : 192.168.99.1(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . :
   DHCPv6 IAID . . . . . . . . . . . : 118095911
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-22-16-35-40-80-CE-62-A7-4D-13
   DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1
                                       fec0:0:0:ffff::2%1
                                       fec0:0:0:ffff::3%1
   NetBIOS over Tcpip. . . . . . . . : Enabled

Routing:

===========================================================================
Interface List
 27...80 ce 62 a7 4d 13 ......Intel(R) Ethernet Connection (4) I219-LM
  7...0a 00 27 00 00 07 ......VirtualBox Host-Only Ethernet Adapter
 11...e4 70 b8 c7 cd 3e ......Microsoft Wi-Fi Direct Virtual Adapter
  3...e4 70 b8 c7 cd 3d ......Intel(R) Dual Band Wireless-AC 8265
 17...e4 70 b8 c7 cd 41 ......Bluetooth Device (Personal Area Network)
  1...........................Software Loopback Interface 1
 20...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter
 18...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #7
  5...00 00 00 00 00 00 00 e0 Teredo Tunneling Pseudo-Interface
===========================================================================

IPv4 Route Table
===========================================================================
Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
          0.0.0.0          0.0.0.0      192.168.1.1    192.168.1.209     50
        127.0.0.0        255.0.0.0         On-link         127.0.0.1    331
        127.0.0.1  255.255.255.255         On-link         127.0.0.1    331
  127.255.255.255  255.255.255.255         On-link         127.0.0.1    331
      192.168.1.0    255.255.255.0         On-link     192.168.1.209    306
    192.168.1.209  255.255.255.255         On-link     192.168.1.209    306
    192.168.1.255  255.255.255.255         On-link     192.168.1.209    306
     192.168.99.0    255.255.255.0         On-link      192.168.99.1    281
     192.168.99.1  255.255.255.255         On-link      192.168.99.1    281
   192.168.99.255  255.255.255.255         On-link      192.168.99.1    281
        224.0.0.0        240.0.0.0         On-link         127.0.0.1    331
        224.0.0.0        240.0.0.0         On-link     192.168.1.209    306
        224.0.0.0        240.0.0.0         On-link      192.168.99.1    281
  255.255.255.255  255.255.255.255         On-link         127.0.0.1    331
  255.255.255.255  255.255.255.255         On-link     192.168.1.209    306
  255.255.255.255  255.255.255.255         On-link      192.168.99.1    281
===========================================================================
Persistent Routes:
  None
oversize commented 6 years ago

I have the same issue. The laptop could not be fresher, just got it yesterday from my new company. Its a Windows 7 Enterprise ... I installed virtualbox seperatly/before the docker-toolbox. I use Mingw64 too (but the issue exists in the docker-quickstart-terminal too). And as well: docker responds instantly when from inside, using (docker-machine ssh default before).

  $ time docker version
  Client:
    Version:       18.03.0-ce
    API version:   1.37
    Go version:    go1.9.4

     Git commit:    0520e24302
     Built: Fri Mar 23 08:31:36 2018
     OS/Arch:       windows/amd64
     Experimental:  false
     Orchestrator:  swarm

    Server:
     Engine:
      Version:      18.03.1-ce
      API version:  1.37 (minimum version 1.12)
      Go version:   go1.9.5
      Git commit:   9ee9f40
      Built:        Thu Apr 26 07:23:03 2018
      OS/Arch:      linux/amd64
      Experimental: false

    real    0m22,208s
    user    0m0,000s
    sys     0m0,031s

info

   $ time docker info
   Containers: 2
    Running: 1
    Paused: 0
    Stopped: 1
   Images: 1
   Server Version: 18.03.1-ce
   Storage Driver: aufs
    Root Dir: /mnt/sda1/var/lib/docker/aufs
    Backing Filesystem: extfs
    Dirs: 7
    Dirperm1 Supported: true
   Logging Driver: json-file
   Cgroup Driver: cgroupfs
   Plugins:
    Volume: local
    Network: bridge host macvlan null overlay
    Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
   Swarm: inactive
   Runtimes: runc
   Default Runtime: runc
   Init Binary: docker-init
   containerd version: 773c489c9c1b21a6d78b5c538cd395416ec50f88
   runc version: 4fc53a81fb7c994640722ac585fa9ca548971871
   init version: 949e6fa
   Security Options:
    seccomp
     Profile: default
   Kernel Version: 4.9.93-boot2docker
   Operating System: Boot2Docker 18.03.1-ce (TCL 8.2.1); HEAD : cb77972 - Thu Apr 26 16:40                  :3 UTC 2018
   OSType: linux
   Architecture: x86_64
   CPUs: 1
   Total Memory: 995.6MiB
   Name: default
   ID: JMN7:QT5Q:IL2V:CYYC:WX6V:YLW7:KBM5:VGLM:UJ7D:4RXA:5FJP:PYY3
   Docker Root Dir: /mnt/sda1/var/lib/docker
   Debug Mode (client): false
   Debug Mode (server): false
   Registry: https://index.docker.io/v1/
   Labels:
    provider=virtualbox
   Experimental: false
   Insecure Registries:
    127.0.0.0/8
   Live Restore Enabled: false

   real    0m21,237s
   user    0m0,000s
    sys     0m0,031s
wizardist commented 5 years ago

@bantl23 I assume you're using Wi-Fi + bridged network to provide connectivity for your VirtualBox guest? Try Ethernet. Although not related to Docker, I'm experiencing the same slow connection with the Intel(R) Dual Band Wireless-AC 8265 Wi-Fi chip.

Previous laptop had 3165 and it was fine.

christopher-ustb commented 5 years ago

@bantl23 I assume you're using Wi-Fi + bridged network to provide connectivity for your VirtualBox guest? Try Ethernet. Although not related to Docker, I'm experiencing the same slow connection with the Intel(R) Dual Band Wireless-AC 8265 Wi-Fi chip.

Previous laptop had 3165 and it was fine.

when i disconnect the wifi,yeah, it becomes faster!

randre70 commented 4 years ago

Try to disable all bridge protocols in the the advanced settings of your wifi adapter. Reference: https://superuser.com/a/540885 Afterwards "docker version" responds immediately.