getting the docker pid and running the links