using_docker_in_archlinux_in_a_local_network
for some reason got an archlinux environment in a local network(via a LAN cable connect to a computer that is connected to internet)
lots of forwarding actions are done with ssh and archlinux_add_loopback_interface
for docker, since we use a custom docker insecure registry, we add a config like:
$ cat /etc/docker/daemon.json
{
"registry-mirrors": [],
"insecure-registries": [
"hub.cloud.*********.com"
],
"debug": true,
"experimental": false
}
be aware that here do not add any port.
And since it uses some custom ssl certificate, we add the certificate to:
ll /etc/docker/certs.d/hub.cloud.*********.com
total 4.0K
-rw-r--r-- 1 root root 1.2K Jan 25 11:41 ca.crt
more information see: https://docs.docker.com/engine/security/certificates/
And a proxy setting:
$ cat /etc/systemd/system/docker.service.d/proxy.conf
[Service]
Environment="HTTP_PROXY=127.0.0.1:7001"
Environment="HTTPS_PROXY=127.0.0.1:7001"
Environment="NO_PROXY=hub.cloud.********.com"
BTW for adding certificate globally, see archlinux_add_certificate. for getting certificate from url, see linux_download_certificate_from_url