Useful Powershell Profile to use with Docker in Windows:
Add the file below to your C:\Users<YOUR-USER>\Documents\WindowsPowerShell
function ansible { docker run -it --net=host --rm -w /code -v ${pwd}:/code --entrypoint /usr/bin/ansible douglasq/ansible-for-windows $args }
function ansible-playbook { docker run -it --net=host --rm -w /code -v ${pwd}:/code --entrypoint /usr/bin/ansible-playbook douglasq/ansible-for-windows $args }
function ansible-galaxy { docker run -it --net=host --rm -w /code -v ${pwd}:/code --entrypoint /usr/bin/ansible-galaxy douglasq/ansible-for-windows $args }
function ansible-vault { docker run -it --net=host --rm -w /code -v ${pwd}:/code --entrypoint /usr/bin/ansible-vault douglasq/ansible-for-windows $args }
function ansible-bash { docker run -it --net=host --rm -w /code -v ${pwd}:/code --entrypoint /bin/bash douglasq/ansible-for-windows $args }
Content type
Image
Digest
Size
195.1 MB
Last updated
almost 9 years ago
docker pull douglasq/ansible-for-windows