Use docker API for rm/rmi calls.