doc: Add notes on how to run docker against MobyLinux

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
This commit is contained in:
Rolf Neugebauer 2016-01-28 15:09:48 -08:00
parent 0c760aa3c7
commit cd61eff2f4
2 changed files with 26 additions and 0 deletions

View File

@ -81,6 +81,28 @@ and all the files can be removed with:
.\MobyLinux.ps1 -destroy
```
## Running Docker
You need a Windows docker client matching the version running on
MobyLinux. I build mine from source in a Linux container using `make
cross`.
When starting the MobyLinux VM on Hyper-V, the docker daemon is
currently started to listen on TCP socket 2375 inside the VM.
**The IP address of the VM may changes on every start**
To determine the IP address, you ca either type:
```
Get-VMNetworkAdapter MobyLinuxVM
```
and then set `DOCKER_HOST` accordingly, or you can execute the PS
snippet printed out by MovyLinux.ps1:
```
$vmIP=(Get-VMNetworkAdapter MobyLinuxVM).IPAddresses[0]
$env:DOCKER_HOST = "tcp://" + $vmIP + ":2375"
```
## Getting a serial console

View File

@ -177,6 +177,10 @@ Start-MobyLinuxVM
{
Write-Output "Starting $VmName"
Start-VM -VMName $VmName
Write-Output 'Connect to Docker by executing:'
Write-Output '$vmIP=(Get-VMNetworkAdapter MobyLinuxVM).IPAddresses[0]'
Write-Output '$env:DOCKER_HOST = "tcp://" + $vmIP + ":2375"'
}
function