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

Run user docker with a configurable storage context

This commit is contained in:
Darren Shepherd
2015-08-27 01:58:45 -07:00
parent d46e9530b9
commit ab6eb58167
8 changed files with 337 additions and 23 deletions

17
config/docker_config.go Normal file
View File

@@ -0,0 +1,17 @@
package config
import "os"
func (d *DockerConfig) FullArgs() []string {
args := append(d.Args, d.ExtraArgs...)
if d.TLS {
args = append(args, d.TLSArgs...)
}
return args
}
func (d *DockerConfig) AppendEnv() []string {
return append(os.Environ(), d.Environment...)
}