Skip to content

Instantly share code, notes, and snippets.

@lily-mara
Created July 13, 2016 20:51
Show Gist options
  • Save lily-mara/11734a70dd9845d74e7a96db27ab3ee5 to your computer and use it in GitHub Desktop.
Save lily-mara/11734a70dd9845d74e7a96db27ab3ee5 to your computer and use it in GitHub Desktop.
{
"builders": [
{
"type": "docker",
"image": "frolvlad/alpine-python3",
"export_path": "image.tar"
}
],
"provisioners": [
{
"type": "shell",
"inline_shebang": "#!/bin/sh -xe",
"inline": [
"pip install ansible"
]
}
]
}
docker output will be in this color.
==> docker: Creating a temporary directory for sharing data...
==> docker: Pulling Docker image: frolvlad/alpine-python3
 docker: Using default tag: latest
 docker: latest: Pulling from frolvlad/alpine-python3
 docker: Digest: sha256:ee5c821d27e92a15886f5ba565babfbe7f86c988b5dd50e47580eb2297bd1ddd
 docker: Status: Image is up to date for frolvlad/alpine-python3:latest
==> docker: Starting docker container...
 docker: Run command: docker run -v /Users/nm46057/.packer.d/tmp/packer-docker191164204:/packer-files -d -i -t frolvlad/alpine-python3 /bin/bash
==> docker: Error running container: Docker exited with a non-zero exit status.
==> docker: Stderr: docker: Error response from daemon: oci runtime error: exec: "/bin/bash": stat /bin/bash: no such file or directory.
==> docker:
Build 'docker' errored: Error running container: Docker exited with a non-zero exit status.
Stderr: docker: Error response from daemon: oci runtime error: exec: "/bin/bash": stat /bin/bash: no such file or directory.

==> Some builds didn't complete successfully and had errors:
--> docker: Error running container: Docker exited with a non-zero exit status.
Stderr: docker: Error response from daemon: oci runtime error: exec: "/bin/bash": stat /bin/bash: no such file or directory.
==> Builds finished but no artifacts were created.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment