From b00b7ac4c16d5c9e2bab8bf7508bc64e188be861 Mon Sep 17 00:00:00 2001 From: Damien Martin-Guillerez Date: Tue, 29 Sep 2015 15:11:30 +0000 Subject: [docker] Add workdir attribute The workdir attribute set the initial working directory when starting the docker container. Contrary to the WORKDIR directive (see https://docs.docker.com/reference/builder/#workdir), it only affects the entry point. -- MOS_MIGRATED_REVID=104201472 --- tools/build_defs/docker/README.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'tools/build_defs/docker/README.md') diff --git a/tools/build_defs/docker/README.md b/tools/build_defs/docker/README.md index 3d93ec45ce..a225f5c259 100644 --- a/tools/build_defs/docker/README.md +++ b/tools/build_defs/docker/README.md @@ -181,7 +181,7 @@ docker_build( ### `docker_build` `docker_build(name, base, data_path, directory, files, mode, tars, -debs, symlinks, entrypoint, cmd, env, ports, volumes)` +debs, symlinks, entrypoint, cmd, env, ports, volumes, workdir)` @@ -322,6 +322,17 @@ debs, symlinks, entrypoint, cmd, env, ports, volumes)` of volumes to mount.

+ + + +
workdir + String, optional +

Initial + working directory when running the docker image.

+

Because building the image never happen inside a docker container, + this working directory does not affect the other actions (e.g., + adding files).

+
-- cgit v1.2.3