Correctly remove container the other place where we remove the container :facepalm:
@@ -639,10 +639,11 @@ func (i *dockerInstance) Stop(ctx gocontext.Context) error {
return err
}
- return i.client.ContainerRemove(ctx, i.container.ID, dockertypes.ContainerRemoveOptions{
- RemoveVolumes: true,
- RemoveLinks: true,
+ return i.client.ContainerRemove(ctx, i.container.ID,
+ dockertypes.ContainerRemoveOptions{
Force: true,
+ RemoveLinks: false,
+ RemoveVolumes: true,
})
}
