$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.1 LTS
Release: 20.04
Codename: focal
$ docker -v
Docker version 20.10.1, build 831ebea
Create /etc/docker/daemon.json and specify registry
daemon.json
{ "insecure-registries": [ "192.168.1.1:5000" ] }
docker restart
$ sudo systemctl daemon-reload
$ sudo systemctl restart docker
Even if insercure-registries is described in /etc/docker/daemon.json, it is not reflected.
daemon.json Because there was a space between "" "and": "
# OK
{ "insecure-registries": [ "192.168.1.1:5000" ] }
# NG
{ "insecure-registries" : [ "192.168.1.1:5000" ] }
Once set, it can be reflected even if there is a blank
https://python5.com/q/desfwrhm