diff --git a/docker/pusher.go b/docker/pusher.go index d1e8c2485..95f9c21fc 100644 --- a/docker/pusher.go +++ b/docker/pusher.go @@ -210,7 +210,13 @@ func (n *Pusher) Push(ctx context.Context, f fn.Function) (digest string, err er } n.progressListener.Increment("Pushing function image to the registry") - b, err := json.Marshal(&credentials) + authConfig := types.AuthConfig{ + Username: credentials.Username, + Password: credentials.Password, + ServerAddress: registry, + } + + b, err := json.Marshal(&authConfig) if err != nil { return "", err }