Install first docker-ssh-agent
https://github.com/andreasur/docker-ssh-agent
docker run \
--rm \
-i \
-t \
-v $(pwd):/root/workdir \
--volumes-from=ssh-agent \
-e SSH_AUTH_SOCK=/.ssh-agent/socket \
arestello/capifony
This runs capifony in the current directory. All followed parameters are passed to capifony.
alias dcap='docker run --rm -i -t -v $(pwd):/root/workdir --volumes-from=ssh-agent -e SSH_AUTH_SOCK=/.ssh-agent/socket arestello/capifony'