title: AKS fails to pull image - failed size validation
body: <p>I have set up a custom docker image registry on Gitlab and AKS for some reason fails to pull the image from there.<br />
  Error that is being thrown out is:</p>
  <pre><code>Failed to pull image &quot;{registry}/{image}:latest&quot;: rpc error: code = FailedPrecondition desc = 
  failed to pull and unpack image &quot;{registry}/{image}:latest&quot;: failed commit on ref &quot;layer-sha256:e1acddbe380c63f0de4b77d3f287b7c81cd9d89563a230692378126b46ea6546&quot;: &quot;layer-sha256:e1acddbe380c63f0de4b77d3f287b7c81cd9d89563a230692378126b46ea6546&quot; failed size validation: 0 != 27145985: failed precondition
  </code></pre>
  <p>What is interesting is that the image does not have the layer with id</p>
  <pre><code>sha256:e1acddbe380c63f0de4b77d3f287b7c81cd9d89563a230692378126b46ea6546
  </code></pre>
  <p>Perhaps something is cached on AKS side? I deleted the pod along with the deployment before redeploying.</p>
  <p>I couldn't find much about this kind of errors and I have no idea what may be causing that. Pulling the same image from local docker environment works flawlessly.<br />
  Any tip would be much appreciated!</p>