mirror of
https://github.com/rancher/os.git
synced 2025-07-20 09:59:03 +00:00
preload images
This commit is contained in:
parent
63bd060e2d
commit
9a91accae9
@ -203,6 +203,22 @@ func NewConfig() *Config {
|
|||||||
},
|
},
|
||||||
LogDriver: "json-file",
|
LogDriver: "json-file",
|
||||||
},
|
},
|
||||||
|
"preload-system-images": {
|
||||||
|
Image: "preload",
|
||||||
|
Privileged: true,
|
||||||
|
Labels: project.NewSliceorMap(map[string]string{
|
||||||
|
DETACH: "false",
|
||||||
|
SCOPE: SYSTEM,
|
||||||
|
}),
|
||||||
|
VolumesFrom: []string{
|
||||||
|
"command-volumes",
|
||||||
|
"system-volumes",
|
||||||
|
},
|
||||||
|
Volumes: []string{
|
||||||
|
"/var/run/system-docker.sock:/var/run/docker.sock",
|
||||||
|
"/var/lib/system-docker/preload:/mnt/preload",
|
||||||
|
},
|
||||||
|
},
|
||||||
"cloud-init-pre": {
|
"cloud-init-pre": {
|
||||||
Image: "cloudinit",
|
Image: "cloudinit",
|
||||||
Privileged: true,
|
Privileged: true,
|
||||||
@ -311,6 +327,25 @@ func NewConfig() *Config {
|
|||||||
"all-volumes",
|
"all-volumes",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
"preload-user-images": {
|
||||||
|
Image: "preload",
|
||||||
|
Privileged: true,
|
||||||
|
Labels: project.NewSliceorMap(map[string]string{
|
||||||
|
DETACH: "false",
|
||||||
|
SCOPE: SYSTEM,
|
||||||
|
}),
|
||||||
|
Links: []string{
|
||||||
|
"dockerwait",
|
||||||
|
},
|
||||||
|
VolumesFrom: []string{
|
||||||
|
"command-volumes",
|
||||||
|
"system-volumes",
|
||||||
|
},
|
||||||
|
Volumes: []string{
|
||||||
|
"/var/run/docker.sock:/var/run/docker.sock",
|
||||||
|
"/var/lib/docker/preload:/mnt/preload",
|
||||||
|
},
|
||||||
|
},
|
||||||
"console": {
|
"console": {
|
||||||
Image: "console",
|
Image: "console",
|
||||||
Privileged: true,
|
Privileged: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user