Просмотр исходного кода

Merge pull request #1579 from aiordache/build_fields

Remove service.Build and service.PullPolicy from config hash
Nicolas De loof 4 лет назад
Родитель
Сommit
92920a03e0
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      utils/hash.go

+ 3 - 0
utils/hash.go

@@ -26,6 +26,9 @@ import (
 // ServiceHash compute configuration has for a service
 // TODO move this to compose-go
 func ServiceHash(o types.ServiceConfig) (string, error) {
+	// remove the Build config when generating the service hash
+	o.Build = nil
+	o.PullPolicy = ""
 	bytes, err := json.Marshal(o)
 	if err != nil {
 		return "", err