()
| 72 | } |
| 73 | |
| 74 | func newBuildOptions() buildOptions { |
| 75 | ulimits := make(map[string]*container.Ulimit) |
| 76 | return buildOptions{ |
| 77 | tags: opts.NewListOpts(validateTag), |
| 78 | buildArgs: opts.NewListOpts(opts.ValidateEnv), |
| 79 | ulimits: opts.NewUlimitOpt(&ulimits), |
| 80 | labels: opts.NewListOpts(opts.ValidateLabel), |
| 81 | extraHosts: opts.NewListOpts(opts.ValidateExtraHost), |
| 82 | } |
| 83 | } |
| 84 | |
| 85 | // NewBuildCommand creates a new `docker build` command |
| 86 | // |
no outgoing calls
searching dependent graphs…