I started to use docker python SDK recently, and I found out whenever I used the api, it will send the http request to docker server. for example, the python code shown as follow:
container.exec_run([‘/bin/bash’, ‘-c’, ‘chattr -i /home/*’], privileged=True)
the cosole output:
pDEBUG 2020-10-13 17:26:54,914]: http://localhost:None “POST /v1.39/exec/c4b3c33eba126186aa9e62568258c59c73c14ba85063a6068603e8c843a95a60/start HTTP/1.1” 101 0
DEBUG 2020-10-13 17:26:55,055]: http://localhost:None “GET /v1.39/exec/c4b3c33eba126186aa9e62568258c59c73c14ba85063a6068603e8c843a95a60/json HTTP/1.1” 200 399
codegnan.com
▷ Web Development with Python and Django | Python and Django Course
Learn Web Development with Python and Django. 40 Hrs. Hands-on Labs & Live Projects. Job & Resume preparation Assistance. Get Certified from Codegnan. Join now
Is there a way to stop showing the http request? Cheers!