Table of Contents

About

This page is about the host machine in Docker (ie the machine where the daemon is installed).

To see the network of hosts, see the page Docker - Host Network.

Before a host was created through the docker-machine executable (creation, start, stop,…) but with the WSL integration, it's no more.

Management

host.docker.internal

This special DNS name resolves to the host machine's IP address from inside containers.

Info !

docker info                                                                                            
Containers: 35                                                                                           
 Running: 1                                                                                              
 Paused: 0                                                                                               
 Stopped: 34                                                                                             
Images: 45                                                                                               
Server Version: 1.12.3                                                                                   
Storage Driver: aufs                                                                                     
 Root Dir: /mnt/sda1/var/lib/docker/aufs                                                                 
 Backing Filesystem: extfs                                                                               
 Dirs: 186                                                                                               
 Dirperm1 Supported: true                                                                                
Logging Driver: json-file                                                                                
Cgroup Driver: cgroupfs                                                                                  
Plugins:                                                                                                 
 Volume: local                                                                                           
 Network: bridge host null overlay                                                                       
 Log:                                                                                                    
Swarm: inactive                                                                                          
Runtimes: runc                                                                                           
Default Runtime: runc                                                                                    
Init Binary:                                                                                             
containerd version:                                                                                      
runc version:                                                                                            
init version:                                                                                            
Security Options:                                                                                        
 seccomp                                                                                                 
Kernel Version: 4.4.27-boot2docker                                                                       
Operating System: Boot2Docker 1.12.3 (TCL 7.2); HEAD : 7fc7575 - Thu Oct 27 17:23:17 UTC 2016            
OSType: linux                                                                                            
Architecture: x86_64                                                                                     
CPUs: 2                                                                                                  
Total Memory: 7.79GiB                                                                                    
Name: default                                                                                            
ID: 6CCC:JOTU:XXK3:ZJV6:7QTA:Y5LZ:EUAM:D3VM:XTVA:NQOY:5M2Z:KSC5                                          
Docker Root Dir: /mnt/sda1/var/lib/docker                                                                
Debug Mode (client): false                                                                               
Debug Mode (server): true                                                                                
 File Descriptors: 23                                                                                    
 Goroutines: 41                                                                                          
 System Time: 2017-10-24T15:05:24.245401217Z                                                             
 EventsListeners: 0                                                                                      
Registry: https://index.docker.io/v1/                                                                    
Labels:                                                                                                  
 provider=virtualbox                                                                                     
Experimental: false                                                                                      
Insecure Registries:                                                                                     
 127.0.0.0/8                                                                                             
Live Restore Enabled: false                                                                              

where you can see: