mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-20 17:49:10 +00:00
doc: Add notes on how to run docker against MobyLinux
Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
This commit is contained in:
parent
0c760aa3c7
commit
cd61eff2f4
@ -81,6 +81,28 @@ and all the files can be removed with:
|
|||||||
.\MobyLinux.ps1 -destroy
|
.\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
|
## Getting a serial console
|
||||||
|
|
||||||
|
@ -177,6 +177,10 @@ Start-MobyLinuxVM
|
|||||||
{
|
{
|
||||||
Write-Output "Starting $VmName"
|
Write-Output "Starting $VmName"
|
||||||
Start-VM -VMName $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
|
function
|
||||||
|
Loading…
Reference in New Issue
Block a user