mirror of https://github.com/docker/docs.git
1.3 KiB
1.3 KiB
| title | description | keywords |
|---|---|---|
| Updating Interlock services | Learn how to update the UCP layer 7 routing solution services | routing, proxy |
Updating Interlock services
There are two parts to the update process:
- Updating the Interlock configuration to specify the new extension and/or proxy image versions.
- Updating the Interlock service to use the new configuration and image.
Updating the Interlock configuration
Create the new configuration:
$> docker config create service.interlock.conf.v2 <path-to-new-config>
Updating the Interlock service
Remove the old configuration and specify the new configuration:
$> docker service update --config-rm service.interlock.conf interlock
$> docker service update --config-add source=service.interlock.conf.v2,target=/config.toml interlock
Next, update the Interlock service to use the new image. The following example updates the Interlock core service to use the sha256:d173014908eb09e9a70d8e5ed845469a61f7cbf4032c28fad0ed9af3fc04ef51
version of Interlock. Interlock starts and checks the config object, which has the new extension version, and
performs a rolling deploy to update all extensions.
$> docker service update \
--image interlockpreview/interlock@sha256:d173014908eb09e9a70d8e5ed845469a61f7cbf4032c28fad0ed9af3fc04ef51 \
interlock