docker run -v /host/directory:/container/directory -other -options image_name command_to_run
CID=$(docker run -d -v hello:/hello busybox true) docker cp $CID:/hello ./