# Create config object
docker config create nginx-conf /tmp/nginx.conf
# create service bind config object
docker service create --replicas=3 --config src=nginx-conf,target="/etc/nginx/nginx.conf" nginx
# remove config object
docker service update --config-rm nginx-conf nginx
docker config rm nginx-conf
# rotate new config
docker config create new-nginx-conf /tmp/nginx-new.conf
docker service update --config-rm nginx-conf --config-add new-nginx-conf nginx
0 people found this article useful
0 people found this article useful