Browse code

Add a comment about how we don't mkdir during WORKDIR directly

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>

Doug Davis authored on 2016/10/29 11:24:37
Showing 1 changed files
... ...
@@ -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