If you only use the answer above locally, it should be fine. If you use it remotely, it is recommended to use secure mode. I built a registry in the ubuntu system and encountered this problem during remote use. Here is the information I compiled, I hope it will be useful to you. Helps.
If you only use the answer above locally, it should be fine. If you use it remotely, it is recommended to use secure mode. I built a registry in the ubuntu system and encountered this problem during remote use. Here is the information I compiled, I hope it will be useful to you. Helps.
Solved it myself.
Enter the corresponding docker-machine and modify the /var/lib/boot2docker/profile file EXTRA_ARGS='
--label provider=virtualbox
'
is EXTRA_ARGS='
--label provider=virtualbox --insecure-registry (ip corresponding to docker-machine):5000
'
After saving, go out and restart the corresponding machine