portainer / compose-unpacker

A tool used to deploy Compose stacks from Git on remote environments
8 stars 7 forks source link

fix(swarm): stack redeploy breaks the mount of relative path [EE-4646] #8

Closed oscarzhou-portainer closed 1 year ago

oscarzhou-portainer commented 1 year ago

closes EE-4646

The solution of portainer-unpacker is to run the command docker service update <stack_service_id> every time when the stack redeployment is executed. This command will forcibly re-create a service container so that the relative path of the new downloaded git repository can be mounted again.