Why running a container via docker sdk in python I get different output compared to the actual command line?
In a shell session I have run: docker run --rm --net host busybox /bin/sh -c "ip route get 1 | sed -n 's/^.*src ([0-9.]*) .*$/1/p'" The output of the command is: 10.0.2.15 But for a utility script that interfaces docker…