You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tag the current service's `image` with *tag*. If no *tag* is given, outputs the service's `image`.
307
+
Tag the current service's `image` with *tags*. If no *tags* are given, outputs the service's `image`.
308
308
309
-
If *tag* contains a `:`, it is passed to the `docker tag` command as-is. Otherwise, if it contains a `/`, `:latest` will be added to the end of it. If it contains neither a `:` nor a `/`, it is appended to the base image with a `:`.
309
+
If a *tag* contains a `:`, it is passed to the `docker tag` command as-is. Otherwise, if it contains a `/`, `:latest` will be added to the end of it. If it contains neither a `:` nor a `/`, it is appended to the base image with a `:`.
310
310
311
311
That is, if a service `foo` has an `image` of `foo/bar:1.2` then:
312
312
@@ -317,16 +317,20 @@ That is, if a service `foo` has an `image` of `foo/bar:1.2` then:
317
317
318
318
Exactly one service must be selected, either explicitly or via the `--tag-default` or`--default` targets. The service must have an `image` key, or the command will fail.
319
319
320
+
(Note: this command tags the image specified by the service's `image` setting, *not* the image currently in use by the service. If the `image` changed (or there's a newer image with that tag) since the last service `up`, you may be tagging the wrong image.)
Copy file name to clipboardExpand all lines: specs/CLI-Commands.cram.md
+8-7Lines changed: 8 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -238,11 +238,11 @@ If stdout is a TTY, the output is paged (using `$DOCO_PAGER` or `less -FRX`) and
238
238
[64]
239
239
~~~
240
240
241
-
#### `tag`*[tag]*
241
+
#### `tag`*[tags...]*
242
242
243
-
Tag the current service's `image` with *tag*. If no *tag* is given, outputs the service's `image`.
243
+
Tag the current service's `image` with *tags*. If no *tags* are given, outputs the service's `image`.
244
244
245
-
If *tag* contains a `:`, it is passed to the `docker tag` command as-is. Otherwise, if it contains a `/`, `:latest` will be added to the end of it. If it contains neither a `:` nor a `/`, it is appended to the base image with a `:`.
245
+
If a *tag* contains a `:`, it is passed to the `docker tag` command as-is. Otherwise, if it contains a `/`, `:latest` will be added to the end of it. If it contains neither a `:` nor a `/`, it is appended to the base image with a `:`.
246
246
247
247
That is, if a service `foo` has an `image` of `foo/bar:1.2` then:
248
248
@@ -253,16 +253,17 @@ That is, if a service `foo` has an `image` of `foo/bar:1.2` then:
253
253
254
254
Exactly one service must be selected, either explicitly or via the `--tag-default` or `--default` targets. The service must have an `image` key, or the command will fail.
255
255
256
+
(Note: this command tags the image specified by the service's `image` setting, *not* the image currently in use by the service. If the `image` changed (or there's a newer image with that tag) since the last service `up`, you may be tagging the wrong image.)
0 commit comments