Use pid from docker inpsect

Since docker returns a pid for the container use that instead of doing all the other hackery.