title: docker notary : tls: oversized record received with length 20527
body: <p>I receive this error when I try to push and sign image in a private registry. Steps to reproduce:</p>
  
  <ol>
  <li><p>Deploy registry: </p>
  
  <pre><code>$ docker run -d -p 5000:5000 --restart=always --name registry registry:2
  </code></pre></li>
  <li><p>Tag the image: </p>
  
  <pre><code>$ docker tag hello-world localhost:5000/hello-world:latest
  </code></pre></li>
  <li><p>Enable content trust: </p>
  
  <pre><code>$ export DOCKER_CONTENT_TRUST=1
  </code></pre></li>
  <li><p>Push on registry:</p>
  
  <pre><code>$ docker push localhost:5000/hello-world:latest
  =&gt; The push refers to a repository [localhost:5000/hello-world]
  a02596fdd012: Pushed 
  latest: digest: sha256:a18ed77532f6d6781500db650194e0f9396ba5f05f8b50d4046b294ae5f83aa4 size: 524
  Signing and pushing trust metadata
  tls: oversized record received with length 20527
  </code></pre></li>
  </ol>