title: Push Docker image to Nexus 3
body: <p>After starting a Sonatype Nexus 3 image (command 1) I tried to create a repo and push one test image (command 2) to that repo but got an error 405 (error 1)</p>
  
  <p>command 1</p>
  
  <pre><code>$ docker run -d -p 8081:8081 --name nexus sonatype/nexus3:3.14.0
  </code></pre>
  
  <p>command 2</p>
  
  <pre><code>$ docker push 127.0.0.1:8081/repository/test2/image-test:0.1
  </code></pre>
  
  <p>error 1</p>
  
  <pre><code>error parsing HTTP 405 response body: invalid character '&lt;' looking for beginning of value: "\n&lt;!DOCTYPE html&gt;\n&lt;html lang=\"en\"&gt;\n&lt;head&gt;\n  &lt;title&gt;405 - Nexus Repository Manager&lt;/title&gt;\n  &lt;meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"/&gt;\n\n\n  &lt;!--[if lt IE 9]&gt;\n  &lt;script&gt;(new Image).src=\"http://127.0.0.1:8081/favicon.ico?3.14.0-04\"&lt;/script&gt;\n  &lt;![endif]--&gt;\n  &lt;link rel=\"icon\" type=\"image/png\" href=\"http://127.0.0.1:8081/favicon-32x32.png?3.14.0-04\" sizes=\"32x32\"&gt;\n  &lt;link rel=\"mask-icon\" href=\"http://127.0.0.1:8081/safari-pinned-tab.svg?3.14.0-04\" color=\"#5bbad5\"&gt;\n  &lt;link rel=\"icon\" type=\"image/png\" href=\"http://127.0.0.1:8081/favicon-16x16.png?3.14.0-04\" sizes=\"16x16\"&gt;\n  &lt;link rel=\"shortcut icon\" href=\"http://127.0.0.1:8081/favicon.ico?3.14.0-04\"&gt;\n  &lt;meta name=\"msapplication-TileImage\" content=\"http://127.0.0.1:8081/mstile-144x144.png?3.14.0-04\"&gt;\n  &lt;meta name=\"msapplication-TileColor\" content=\"#00a300\"&gt;\n\n  &lt;link rel=\"stylesheet\" type=\"text/css\" href=\"http://127.0.0.1:8081/static/css/nexus-content.css?3.14.0-04\"/&gt;\n&lt;/head&gt;\n&lt;body&gt;\n&lt;div class=\"nexus-header\"&gt;\n  &lt;a href=\"http://127.0.0.1:8081\"&gt;\n    &lt;div class=\"product-logo\"&gt;\n      &lt;img src=\"http://127.0.0.1:8081/static/images/nexus.png?3.14.0-04\" alt=\"Product logo\"/&gt;\n    &lt;/div&gt;\n    &lt;div class=\"product-id\"&gt;\n      &lt;div class=\"product-id__line-1\"&gt;\n        &lt;span class=\"product-name\"&gt;Nexus Repository Manager&lt;/span&gt;\n      &lt;/div&gt;\n      &lt;div class=\"product-id__line-2\"&gt;\n        &lt;span class=\"product-spec\"&gt;OSS 3.14.0-04&lt;/span&gt;\n      &lt;/div&gt;\n    &lt;/div&gt;\n  &lt;/a&gt;\n&lt;/div&gt;\n\n&lt;div class=\"nexus-body\"&gt;\n  &lt;div class=\"content-header\"&gt;\n    &lt;img src=\"http://127.0.0.1:8081/static/rapture/resources/icons/x32/exclamation.png?3.14.0-04\" alt=\"Exclamation point\" aria-role=\"presentation\"/&gt;\n    &lt;span class=\"title\"&gt;Error 405&lt;/span&gt;\n    &lt;span class=\"description\"&gt;Method Not Allowed&lt;/span&gt;\n  &lt;/div&gt;\n  &lt;div class=\"content-body\"&gt;\n    &lt;div class=\"content-section\"&gt;\n      HTTP method POST is not supported by this URL\n    &lt;/div&gt;\n      &lt;/div&gt;\n&lt;/div&gt;\n&lt;/body&gt;\n&lt;/html&gt;\n\n"
  </code></pre>