How to upload the image to the local repository in the docker?

Need on the base of the container to create an image and fill it in a local repository. To create a local repository I did, but when I try to load/unload image error 405. I also learned that Docker is a ready-made repository, the name of which is associated with the "base", but information about him can find more fails. Please tell me how to fill the image in the "base" or fix the error 405.
July 9th 19 at 14:02
2 answers
July 9th 19 at 14:04
The Docker repository called the registry and how to raise - here.

Please note, when lifting your own register docker has to be run with the option --increase-registry look here, otherwise it might not find your case.

If you just sit, or there is no need in the privacy of your images is better not to bother and use docker hub.
I've tried to use this solution, but I can't establish a connection to the repository. Perhaps something was misunderstood, could you give a example how to raise a local repository? - Hettie_Schust commented on July 9th 19 at 14:07
Yes, exactly the same as in the help. What do you mean "can't establish a connection to the repository"? As you identify, let's logs, we will see. - andre_Erdman43 commented on July 9th 19 at 14:10
Issues
~ $sudo docker push localhost:85/nginx
The push refers to a repository [localhost:85/nginx]
Put localhost:85/v1/repositories/nginx/: dial tcp 127.0.0.1:85: getsockopt: connection refused - Hettie_Schust commented on July 9th 19 at 14:13
You definitely picked up on the 85th port register, in the sense of forwarding 85:5000? - andre_Erdman43 commented on July 9th 19 at 14:16
: oops, that was then, and mistakes were made portforwarding 85:85. Fixed now seems to be functioning. Thank you very much for the help!!! - Hettie_Schust commented on July 9th 19 at 14:19
July 9th 19 at 14:06
docker push and your tag in the local repository
Example:
docker push local:5000/registry1

Find more questions by tags LinuxDocker