Build docker build -t ansible . Run docker run -it ansible -v ~/.ssh:/home/ansible/.ssh -v .:/ansible-project bash