Hi Alex and John,
Thanks for your replies. We are currently using the scp command with ssh keypairs, but as far as I know the only way I can copy the key to the container for use is at build time since John mentioned we cannot mount external volumes by default for security purposes. While this method works well for the task, from a security perspective I wasn't a fan of building a container with the key installed. Do you or John have any suggestions on how to have the key mounted at run time maybe through one of the XNAT folders that gets auto mounted during runtime?
John to give you more context we are currently writing a json file out that contains all relevant pipeline parameters and container ID/workflow ID so that we can transfer to our compute resource and use to run jobs since our infrastructure does not support docker directly, outside of the one VM used with container service. I am note the docker expert by any means but I was hoping to use docker cp to copy the file from the container to the docker host but that seems to only work the other way around from the host side, which does not work when running the container. I may be wrong on this point but have been unsuccessful thus far. I was looking for a way to avoid using scp since I need to install the key pair at build-time, unless there is an XNAT folder that does not get auto-cataloged into the database where I can store the key and have it auto mounted in the way you specified during login.
I am not opposed to using the resource, as we upload the outputs of pipelines there, but since we are able to copy it currently I think it was just lower hanging fruit to fix scp/keygen issue as opposed to having to use a separate API call.
Any suggestions or thoughts would be appreciated.
Thanks,
Ajay