new docker-srm function, moved docker functions into their own file