Add SYS_PTRACE capability

292 views
Skip to first unread message

Doug Garstang

unread,
Jan 11, 2017, 12:04:16 PM1/11/17
to Packer
Trying to use the chef-solo provisioner with the docker builder.

The chef run list installs tomcat. Tomcat doesn't run in a docker container without adding the SYS_PTRACE capability.


How can I enable this when packer builds the docker image? There must be some way to pass custom config to docker?

Thanks,
Doug.

Rickard von Essen

unread,
Jan 11, 2017, 12:16:27 PM1/11/17
to packe...@googlegroups.com

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/ef0cff8e-ab20-410b-8b1b-a56ded7a3f74%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Doug Garstang

unread,
Jan 11, 2017, 12:20:09 PM1/11/17
to Packer
I'll reply to my own post:

"run_command": ["--dns={{user `dns_ip`}}", "-d", "--cap-add=SYS_PTRACE", "-i", "-t", "{{.Image}}", "/bin/bash"]

Doug
Reply all
Reply to author
Forward
0 new messages