1
0
mirror of https://github.com/rancher/os.git synced 2025-07-19 09:26:27 +00:00

preload images

This commit is contained in:
Ivan Mikushin 2015-05-19 19:34:34 +05:00
parent 63bd060e2d
commit 9a91accae9

View File

@ -203,6 +203,22 @@ func NewConfig() *Config {
},
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": {
Image: "cloudinit",
Privileged: true,
@ -311,6 +327,25 @@ func NewConfig() *Config {
"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": {
Image: "console",
Privileged: true,