Docker executor in container launch

Note: I haven't embed the docker image or include Dockerfile and docker build as part of the build step yet, but this is the working code to put up review first.
Why not string& for 'key' and 'value'?