I kept running into the following error, when trying to
docker pull a docker image from our private repo.
Googling the error was not very helpful, and it took me a while to find a solution, even though it is very simple. You just have to let docker know that it’s ok to trust that repo:
sudo vim /etc/default/docker
- Add the following line:
DOCKER_OPTS="$DOCKER_OPTS --insecure-registry your.registery.ip.or.url"
- Restart docker via:
sudo service docker restart