Signed-off-by: Sam Whited <sam@samwhited.com>
| ... | ... |
@@ -57,7 +57,6 @@ type clientConfig struct {
|
| 57 | 57 |
|
| 58 | 58 |
// Daemon represents a Docker daemon for the testing framework |
| 59 | 59 |
type Daemon struct {
|
| 60 |
- GlobalFlags []string |
|
| 61 | 60 |
Root string |
| 62 | 61 |
Folder string |
| 63 | 62 |
Wait chan error |
| ... | ... |
@@ -256,17 +255,17 @@ func (d *Daemon) StartWithLogFile(out *os.File, providedArgs ...string) error {
|
| 256 | 256 |
d.pidFile = filepath.Join(d.Folder, "docker.pid") |
| 257 | 257 |
} |
| 258 | 258 |
|
| 259 |
- d.args = append(d.GlobalFlags, "--data-root", d.Root) |
|
| 260 |
- if d.containerdSocket != "" {
|
|
| 261 |
- d.args = append(d.args, "--containerd", d.containerdSocket) |
|
| 262 |
- } |
|
| 263 |
- d.args = append(d.args, |
|
| 259 |
+ d.args = []string{
|
|
| 260 |
+ "--data-root", d.Root, |
|
| 264 | 261 |
"--exec-root", d.execRoot, |
| 265 | 262 |
"--pidfile", d.pidFile, |
| 266 | 263 |
fmt.Sprintf("--userland-proxy=%t", d.userlandProxy),
|
| 267 | 264 |
"--containerd-namespace", d.id, |
| 268 |
- "--containerd-plugins-namespace", d.id+"p", |
|
| 269 |
- ) |
|
| 265 |
+ "--containerd-plugins-namespace", d.id + "p", |
|
| 266 |
+ } |
|
| 267 |
+ if d.containerdSocket != "" {
|
|
| 268 |
+ d.args = append(d.args, "--containerd", d.containerdSocket) |
|
| 269 |
+ } |
|
| 270 | 270 |
|
| 271 | 271 |
if d.defaultCgroupNamespaceMode != "" {
|
| 272 | 272 |
d.args = append(d.args, "--default-cgroupns-mode", d.defaultCgroupNamespaceMode) |