Packer Docker builder using chmod on Windows 10 -


here packer file:

    {         "builders": [{             "type": "docker",             "image": "ubuntu",             "export_path": "image.tar"         }],         "provisioners": [{             "type": "shell",             "inline": ["mkdir /full_install",             "mkdir /scripts"]         },         {             "type": "file",             "source": "./scripts/",             "destination": "/scripts"         }]     } 

simple. trying make 2 directories , upload scripts 1 of directories. getting following output on windows 10:

c:\work\packer\mypacker>packer build myserver.json docker output in color.

==> docker: creating temporary directory sharing data... ==> docker: pulling docker image: ubuntu docker: using default tag: latest docker: latest: pulling library/ubuntu docker: digest: sha256:dd7808d8792c9841d0b460122f1acf0a2dd1f56404f8d1e56298048885e45535 docker: status: image date ubuntu:latest ==> docker: starting docker container... docker: run command: docker run -v c:\users\syarnell\appdata\roaming\packer.d\tmp\packer-docker346952011:/packer-files -d -i -t ubuntu /bin/bash docker: container id: 84a0969874bbfc031f60ad03c8e6765f895733cdfd51c727ae59c82a80c82658 ==> docker: provisioning shell script: c:\users\syarnell\appdata\local\temp\packer-shell141617915 ==> docker: uploading ./scripts/ => /scripts ==> docker: killing container: 84a0969874bbfc031f60ad03c8e6765f895733cdfd51c727ae59c82a80c82658 build 'docker' errored: chmod c:\users\syarnell\appdata\roaming\packer.d\tmp\packer-docker346952011\dirupload432828853\batchinstall.sh: not supported windows

==> builds didn't complete , had errors: --> docker: chmod c:\users\syarnell\appdata\roaming\packer.d\tmp\packer-docker346952011\dirupload432828853\batchinstall.sh: not supported windows

==> builds finished no artifacts created.

c:\work\packer\mypacker>

why trying chmod file in windows 10?

packer docker builder doesn't work on windows, open issue on github.com.


Comments

Popular posts from this blog

'hasOwnProperty' in javascript -

python - ValueError: No axis named 1 for object type <class 'pandas.core.series.Series'> -

Command prompt result in label. Python 2.7 -