1
0
mirror of https://github.com/rancher/os.git synced 2025-07-12 14:18:01 +00:00

Change volume containers to create only

This commit is contained in:
Darren Shepherd 2015-03-20 11:36:00 -07:00
parent a398f82403
commit 189e40ce26
2 changed files with 7 additions and 1 deletions

View File

@ -93,6 +93,7 @@ func NewConfig() *Config {
"-v=/var/run:/var/run " +
"-v=/var/log:/var/log " +
"state",
CreateOnly: true,
},
{
Id: "command-volumes",
@ -111,6 +112,7 @@ func NewConfig() *Config {
"-v=/lib/modules:/lib/modules:ro " +
"-v=/usr/bin/docker:/usr/bin/docker:ro " +
"state",
CreateOnly: true,
},
{
Id: "user-volumes",
@ -120,15 +122,18 @@ func NewConfig() *Config {
"-v=/home:/home " +
"-v=/opt:/opt " +
"state",
CreateOnly: true,
},
{
Id: "docker-volumes",
Cmd: "--name=docker-volumes " +
"--net=none " +
"--read-only " +
"-v=/var/lib/rancher:/var/lib/rancher " +
"-v=/var/lib/docker:/var/lib/docker " +
"-v=/var/lib/system-docker:/var/lib/system-docker " +
"state",
CreateOnly: true,
},
{
Id: "all-volumes",
@ -141,6 +146,7 @@ func NewConfig() *Config {
"--volumes-from=user-volumes " +
"--volumes-from=system-volumes " +
"state",
CreateOnly: true,
},
{
Id: "cloud-init-pre",

View File

@ -4,5 +4,5 @@ cd $(dirname $0)/..
source scripts/build-common
download d39f85b5c3ca59be9936627b2c3138bc2868fdfd https://github.com/rancherio/os-base/releases/download/v0.1.0/os-base.tar.xz
download 229f3d43369982b6a7b410795c9762814ade0f56 https://github.com/rancherio/os-base/releases/download/v0.1.1/os-base.tar.xz
download 1acbe869b32869bca5788373e8624a2957cbb380 https://github.com/ibuildthecloud/docker/releases/download/v1.5.0-rancher-2/docker-1.5.0