docker_config.go 278 B

123456789101112131415161718
  1. package config
  2. import "os"
  3. func (d *DockerConfig) FullArgs() []string {
  4. args := append(d.Args, d.ExtraArgs...)
  5. if d.TLS {
  6. args = append(args, d.TLSArgs...)
  7. }
  8. return args
  9. }
  10. func (d *DockerConfig) AppendEnv() []string {
  11. return append(os.Environ(), d.Environment...)
  12. }