generated from shovel-org/GenericBucket
/
docker-desktop-with-compose.json
73 lines (73 loc) · 3.08 KB
/
docker-desktop-with-compose.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
{
"version": "145265",
"description": "Docker Desktop. Open platform for developers and sysadmins to build, ship, and run distributed applications, whether on laptops, data center VMs, or the cloud.",
"homepage": "https://www.docker.com",
"license": {
"identifier": "Apache-2.0",
"url": "https://github.com/moby/moby/blob/master/LICENSE"
},
"notes": [
"Conditions refer to the:",
"https://learn.microsoft.com/en-us/windows/wsl/install",
"https://docs.docker.com/desktop/install/windows-install",
"强烈建议选择 wsl-2 backend, windows/hyper-v 都是 win/amd64 架构的, 大部分镜像拉不到合适的, 就是装了个花瓶"
],
"architecture": {
"64bit": {
"url": "https://desktop.docker.com/win/main/amd64/145265/Docker%20Desktop%20Installer.exe",
"hash": "61199a9e69878c23552b6c0eea9c07d7cd0d2bacb52ce3abd7cef4ddbf99ef52"
}
},
"installer": {
"args": [
"install",
"--quiet",
"--accept-license",
"--backend=wsl-2",
"--installation-dir=$dir\\docker"
]
},
"post_install": [
"function Create-Junction { param ([string]$runtimeCache, [string]$runtimeCachePersist)",
" if (-not (Test-Path $runtimeCache)) { return }",
" if (Test-Path $runtimeCachePersist) {",
" Remove-Item $runtimeCache -Force -Recurse -ErrorAction SilentlyContinue",
" New-Item -Type Junction -Path $runtimeCache -Target $runtimeCachePersist | Out-Null",
" } else {",
" mkdir $runtimeCache -ErrorAction SilentlyContinue",
" Move-Item $runtimeCache $runtimeCachePersist -Force",
" New-Item -Type Junction -Path $runtimeCache -Target $runtimeCachePersist | Out-Null",
" }",
"}",
"foreach ($folder in @('.docker', 'Docker', 'Docker Desktop')) {",
" Create-Junction -runtimeCache \"$env:USERPROFILE\\$folder\" -runtimeCachePersist \"$persist_dir\\USERPROFILE\\$folder\"",
" Create-Junction -runtimeCache \"$env:LOCALAPPDATA\\$folder\" -runtimeCachePersist \"$persist_dir\\LOCALAPPDATA\\$folder\"",
" Create-Junction -runtimeCache \"$env:APPDATA\\$folder\" -runtimeCachePersist \"$persist_dir\\APPDATA\\$folder\"",
"}"
],
"shortcuts": [
[
"docker\\Docker Desktop.exe",
"Docker Desktop"
]
],
"env_add_path": "docker\\resources\\bin",
"uninstaller": {
"file": "docker\\Docker%20Desktop%20Installer.exe",
"args": [
"uninstall",
"--quiet"
]
},
"checkver": {
"url": "https://docs.docker.com/desktop/release-notes/",
"regex": "https://desktop.docker.com/win/main/amd64/([\\d.]+)/Docker%20Desktop%20Installer.exe"
},
"autoupdate": {
"url": "https://desktop.docker.com/win/main/amd64/$version/Docker%20Desktop%20Installer.exe",
"hash": {
"url": "https://desktop.docker.com/win/main/amd64/$version/checksums.txt",
"regex": "$.sha256"
}
}
}