-
Notifications
You must be signed in to change notification settings - Fork 908
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Watchtower sub-commands #1231
Comments
I am not sure whether I understand the use case for this command in particular.
should be conditional to there actually being a newer image.
I would argue that
Now that compose has been rewritten in go, should we support something like Some additional commands I'd like to see:
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Using these subcommands in a script is one way to implement #1401. It would still be good to make it more automatic or more declarative, if other approaches described there are feasible. But implementation of these subcommands would make it possible. |
There are some requests for specialized behaviour of watchtower that is currently not possible to do due to how linearly watchtower operates.
This is a
catch-all
issue for those cases, with the aim of adding some additional sub-commands to watchtower to allow users to use the different parts of watchtower as separate CLI tools, perhaps chaining them together with their own custom logic using pipes, á la the unix way. Sort of like a "build your own watchtower" kit!Subcommand proposals
watchtower images <FILTERS> [<CONTAINER> <CONTAINER>...]
¹Retrieves the image names for the specified container, using the same filter/context/label logic as the "main" command
watchtower check <IMAGE> [<IMAGE>]
Checks the supplied images for newer versions outputting only those image names
watchtower recreate <CONTAINER> [<CONTAINER>...]
Stops the old container, removes it and creates a new container with the latest version of the container image
Optional arguments:
--with-enable-label=<true|false|none>
Sets the
com.centurylinklabs.watchtower.enable
label to the supplied value, allowing it to be ignore/included in the regular runswatchtower create <INSPECT-JSON-FILE | ->
Creates a container from a captured output of
docker inspect
watchtower [dis|en]able <CONTAINER>
Recreates the container using the
watchtower.enable=true/false
label (alias towatchtower recreate --with-enable-label=
)watchtower notify
¹ CONTAINER means either a container name or a container ID.
The text was updated successfully, but these errors were encountered: