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:
17
config/docker_config.go
Normal file
17
config/docker_config.go
Normal 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...)
|
||||
}
|
Reference in New Issue
Block a user