bash completion for `docker service {create,update} --log-{driver,opt}`
@@ -1711,6 +1711,8 @@ _docker_service_update() {
--label -l
--limit-cpu
--limit-memory
+ --log-driver
+ --log-opt
--mount
--name
--network
@@ -1734,6 +1736,8 @@ _docker_service_update() {
--registry-auth
"
+ __docker_complete_log_driver_options && return
+
if [ "$subcommand" = "create" ] ; then
options_with_args="$options_with_args
--mode
@@ -1770,6 +1774,14 @@ _docker_service_update() {
__docker_nospace
return
;;
+ --log-driver)
+ __docker_complete_log_drivers
+ return
+ ;;
+ --log-opt)
+ __docker_complete_log_options
+ return
+ ;;
--network)
__docker_complete_networks
return
