Capistrano Deploy From Docker Container To Remote Server

Hi,

I have a rails application running locally on my docker images. So I want to deploy my app to remote server. But while doing this ssh is not allow me to do so. How can I made ssh-add run correctly so I can finish my deployment process?

Thanks.