error checking for container_run, and return its output