Skip to content

Commit dffc063

Browse files
authoredOct 12, 2021
Fix references to env in docs
fixes mcuadros#162
1 parent 002a481 commit dffc063

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
 

‎docs/jobs.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ This job is executed inside a running container. Similar to `docker exec`
3232
- *value*: Boolean, either `false` or `true`
3333
- *default*: `false`
3434
- **Environment**
35-
- *description*: Environment variables you want to set in the running container. Note: ***exec configuration Env is only supported in API#1.25 and above***
35+
- *description*: Environment variables you want to set in the running container. Note: ***exec configuration Env is only supported in Docker API#1.25 and above***
3636
- *value*: Same format as used with `-e` flag within `docker run`. For example: `FOO=bar`
37-
- **INI config**: `Env` setting can be provided multiple times for multiple environment variables.
37+
- **INI config**: `Environment` setting can be provided multiple times for multiple environment variables.
3838
- **Labels config**: multiple environment variables has to be provided as JSON array: `["FOO=bar", "BAZ=qux"]`
3939
- *default*: Optional field, no default.
4040

@@ -113,7 +113,7 @@ This job can be used in 2 situations:
113113
- **Environment**
114114
- *description*: Environment variables you want to set in the running container.
115115
- *value*: Same format as used with `-e` flag within `docker run`. For example: `FOO=bar`
116-
- **INI config**: `Env` setting can be provided multiple times for multiple environment variables.
116+
- **INI config**: `Environment` setting can be provided multiple times for multiple environment variables.
117117
- **Labels config**: multiple environment variables has to be provided as JSON array: `["FOO=bar", "BAZ=qux"]`
118118
- *default*: Optional field, no default.
119119

@@ -141,7 +141,7 @@ docker run -it --rm \
141141
--label ofelia.job-run.print-write-date.schedule="@every 5s" \
142142
--label ofelia.job-run.print-write-date.image="alpine:latest" \
143143
--label ofelia.job-run.print-write-date.volume="/tmp/test:/tmp/test:rw" \
144-
--label ofelia.job-run.print-write-date.env="FOO=bar" \
144+
--label ofelia.job-run.print-write-date.environment="FOO=bar" \
145145
--label ofelia.job-run.print-write-date.command="sh -c 'date | tee -a /tmp/test/date'" \
146146
mcuadros/ofelia:latest daemon --docker
147147
```
@@ -169,7 +169,7 @@ Runs the command on the host running Ofelia.
169169
- **Environment**
170170
- *description*: Environment variables you want to set for the executed command.
171171
- *value*: Same format as used with `-e` flag within `docker run`. For example: `FOO=bar`
172-
- **INI config**: `Env` setting can be provided multiple times for multiple environment variables.
172+
- **INI config**: `Environment` setting can be provided multiple times for multiple environment variables.
173173
- **Labels config**: multiple environment variables has to be provided as JSON array: `["FOO=bar", "BAZ=qux"]`
174174
- *default*: Optional field, no default.
175175

0 commit comments

Comments
 (0)
Failed to load comments.