diff --git "a/qemu/dhcp\346\234\215\345\212\241\345\277\253\351\200\237\351\203\250\347\275\262.md" "b/qemu/dhcp\346\234\215\345\212\241\345\277\253\351\200\237\351\203\250\347\275\262.md" index b0c83b3..fd1c42b 100755 --- "a/qemu/dhcp\346\234\215\345\212\241\345\277\253\351\200\237\351\203\250\347\275\262.md" +++ "b/qemu/dhcp\346\234\215\345\212\241\345\277\253\351\200\237\351\203\250\347\275\262.md" @@ -12,7 +12,11 @@ tags: ```sh sudo mkdir -p /etc/systemd/system/docker.service.d sudo touch /etc/systemd/system/docker.service.d/proxy.conf -echo +cat << eof > +[Service] +Environment="HTTP_PROXY=http:///" +Environment="HTTPS_PROXY=http://proxy.example.com:8080/" +eof dhcpd_cfg=/var/lcj/dhcpd.conf mkdir -p `dirname $dhcpd_cfg` cat <<'EOF' > ${dhcpd_cfg}