Skip to content

Instantly share code, notes, and snippets.

@RagedUnicorn
Last active August 17, 2018 09:22
Show Gist options
  • Save RagedUnicorn/0789fccf3292472acffd2bf0cdac0ea5 to your computer and use it in GitHub Desktop.
Save RagedUnicorn/0789fccf3292472acffd2bf0cdac0ea5 to your computer and use it in GitHub Desktop.
Update a docker stack deployment

Update Docker Stack Deployment

A docker stack deployment can be updated by re-executing the deployment command.

docker stack deploy --compose-file=[docker-compose file] [stack-name]

An example where this could be used is if the image version changed. Simply change the docker-compose configuration to the newest version and then execute the above command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment