Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add Insecure Registry to Docker in ubuntu [closed]

Tags:

docker

I am trying to add private registry in docker on ubuntu machine, using nexus as repository

below is the screenshot of nexus configurations

enter image description here

in docker host i have added DOCKER_OPTS="--insecure-registry=xx.xx.xx.xx:8083" to /etc/default/docker

after these changes i did docker restart using below commands

 systemctl daemon-reload
 systemctl restart docker

now when i execute docker info its not showing up my private registry

enter image description here

is anything missing in my configurations

like image 539
Sugatur Deekshith S N Avatar asked Oct 23 '25 02:10

Sugatur Deekshith S N


1 Answers

Try adding insecure registry entry in /etc/docker/daemon.json

file content

{ "insecure-registries":["registry.example.com"] }

restart the docker deamon

sudo systemctl restart docker
like image 113
Vikas Mulaje Avatar answered Oct 24 '25 15:10

Vikas Mulaje