Skip to content

exec: add --env and --workdir#29

Merged
ktock merged 1 commit intomainfrom
exec-opts
May 24, 2022
Merged

exec: add --env and --workdir#29
ktock merged 1 commit intomainfrom
exec-opts

Conversation

@ktock
Copy link
Copy Markdown
Owner

@ktock ktock commented May 24, 2022

  • --env value, -e value: Set environment variables
  • --workdir value, -w value: Working directory inside the container
(buildg) exec --workdir /tmp pwd
/tmp
(buildg) exec --env MSG=hello --env MSG2=world /bin/sh -c "echo $MSG $MSG2"
hello world

```console
(buildg) exec --workdir /tmp pwd
/tmp
(buildg) exec --env MSG=hello --env MSG2=world /bin/sh -c "echo $MSG $MSG2"
hello world
```

Signed-off-by: Kohei Tokunaga <[email protected]>
@ktock ktock merged commit 353cd1c into main May 24, 2022
@ktock ktock deleted the exec-opts branch May 24, 2022 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant