From 2190bb3e0de72b462b051fad25f419f9c5373859 Mon Sep 17 00:00:00 2001 From: Julio Stanley Date: Mon, 23 Apr 2018 08:21:51 -0400 Subject: [PATCH] Adding lcow and docker-nigthly. Currently this enables docker on windows without vms (#2216) --- docker-nightly.json | 62 +++++++++++++++++++++++++++++++++++++++++++++ lcow.json | 17 +++++++++++++ 2 files changed, 79 insertions(+) create mode 100644 docker-nightly.json create mode 100644 lcow.json diff --git a/docker-nightly.json b/docker-nightly.json new file mode 100644 index 0000000000..93715ab767 --- /dev/null +++ b/docker-nightly.json @@ -0,0 +1,62 @@ +{ + "homepage": "https://master.dockerproject.org", + "version": "nightly", + "description": "Run the latest master build of docker client and engine", + "url": "https://master.dockerproject.org/windows/x86_64/docker.zip", + "extract_dir": "docker", + "depends": [ + "sudo", + "lcow" + ], + "suggest": { + "Linux container support on Windows": [ + "lcow" + ], + "Docker Compose": [ + "docker-compose" + ], + "Docker Machine": [ + "docker-machine" + ], + "Kubernetes Standalone": [ + "minikube" + ], + "Kubernetes Client": [ + "kubectl" + ], + "compose.yml to kubernetes.yml": [ + "kompose" + ] + }, + "bin": [ + "dockerd.exe", + "docker.exe" + ], + "notes": [ + "Make sure to have container features enabled (will need a restart afterwards):", + "sudo Enable-WindowsOptionalFeature -Online -FeatureName containers -All -NoRestart", + "sudo Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All -NoRestart", + "", + "To test run you can use:", + "sudo dockerd -D --experimental -H \"npipe:////./pipe//docker_lcow\"", + "", + "To install and run as a service (with linux containers support - lcow):", + "You do not have to create a docker group you can replace it with (whoami)", + "", + "sudo net localgroup docker /add", + "sudo net localgroup docker (whoami) /add", + "sudo dockerd.exe `", + " --register-service `", + " --experimental `", + " --storage-opt lcow.kirdpath=\"$(scoop prefix lcow)\" `", + " -G docker", + "sudo Start-Service docker", + "", + "To remove the service you can use:", + "sudo Stop-Service docker", + "sudo powershell", + "(gwmi win32_service -filter \"name='docker'\").delete()", + "", + "For help, see https://docs.microsoft.com/en-us/virtualization/windowscontainers/manage-docker/configure-docker-daemon" + ] +} diff --git a/lcow.json b/lcow.json new file mode 100644 index 0000000000..387c0d988b --- /dev/null +++ b/lcow.json @@ -0,0 +1,17 @@ +{ + "homepage": "https://github.com/linuxkit/lcow", + "license": "Apache-2.0", + "version": "4.14.29-0aea33bc", + "url": "https://github.com/linuxkit/lcow/releases/download/4.14.29-0aea33bc/release.zip", + "hash": "5687be10447757cc0eb04a91b4dec3e296bf980200923fe806755d5fbb1a03fa", + "checkver": { + "url": "https://github.com/linuxkit/lcow/releases/latest", + "re": "/releases/tag/(?:v)?([\\d.]+-\\w+)" + }, + "autoupdate": { + "url": "https://github.com/linuxkit/lcow/releases/download/$version/release.zip", + "hash": { + "url": "https://github.com/linuxkit/lcow/releases/tag/$version" + } + } +}