Just to help the next time someone goes looking for it while debugging.
Like @jhowardmsft and I did while looking at #27545.
Signed-off-by: Doug Davis <dug@us.ibm.com>
| ... | ... |
@@ -278,6 +278,11 @@ func workdir(b *Builder, args []string, attributes map[string]bool, original str |
| 278 | 278 |
return err |
| 279 | 279 |
} |
| 280 | 280 |
|
| 281 |
+ // NOTE: You won't find the "mkdir" for the directory in here. Rather we |
|
| 282 |
+ // just set the value in the image's runConfig.WorkingDir property |
|
| 283 |
+ // and container.SetupWorkingDirectory() will create it automatically |
|
| 284 |
+ // for us the next time the image is used to create a container. |
|
| 285 |
+ |
|
| 281 | 286 |
return b.commit("", b.runConfig.Cmd, fmt.Sprintf("WORKDIR %v", b.runConfig.WorkingDir))
|
| 282 | 287 |
} |
| 283 | 288 |
|