Docker Proxy version 2

Sepertinya untuk latest docker pengaturan proxy untuk bisa menjalankan docker seperti ini, tidak bisa dilakukan alias it's not working. So, kali ini i reconfigure with another setting to work with docker under proxy. I have installed docker dengan versi 18.x, lalu saya mengubah setting proxynya dalam environtment with the bellow method

  • Create the directory with command, 
sudo mkdir -p /etc/systemd/system/docker.service.d
  • I create file with name http-proxy.conf with command,
sudo nano /etc/systemd/system/docker.service.d/http-proxy.conf
  • Kemudian masukkan script berikut dalam http-proxy.conf tadi.
 [Service]
Environment="HTTP_PROXY=http://USERNAME:Password@cache.itb.ac.id:8080/"
Environment="HTTPS_PROXY=http://USERNAME:Password@cache.itb.ac.id:8080/"
  • Reload daemon with command
 sudo systemctl daemon-reload
  • Restart docker with command
 sudo systemctl restart docker
  • Try to install hello-world
sudo docker run -it hello-world

Tampilan Hello World



References
  1. Setting docker under proxy

Comments

Popular posts from this blog

Privacy ADB GMS

Dan Teknologi