Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chef-init failing when trying to build docker image #32

Open
swatiswjain opened this issue Apr 15, 2015 · 0 comments
Open

Chef-init failing when trying to build docker image #32

swatiswjain opened this issue Apr 15, 2015 · 0 comments

Comments

@swatiswjain
Copy link

Env:
Chef Development Kit for RHEL: 0.4.0
Knife Container gem present.
Issue:
knife container docker init works but build fails: /bin/sh: chef-init: command not found
Logs :

Resolving cookbook dependencies...
Using iptables (1.0.0)
Using logrotate (1.9.1)
Using apache2 (3.0.1)
Resolving cookbook dependencies...
Using apache2 (3.0.1)
Using iptables (1.0.0)
Using logrotate (1.9.1)
Vendoring apache2 (3.0.1) to /home/Development/chef-repo/dockerfiles/demo/apache2/chef/cookbooks/apache2
Vendoring iptables (1.0.0) to /home/Development/chef-repo/dockerfiles/demo/apache2/chef/cookbooks/iptables
Vendoring logrotate (1.9.1) to /home/Development/chef-repo/dockerfiles/demo/apache2/chef/cookbooks/logrotate
Sending build context to Docker daemon 653.8 kB
Sending build context to Docker daemon
Step 0 : FROM :5000/library/oraclelinux:6.6
---> d56e767abb61
Step 1 : ADD chef/ /etc/chef/
---> de4ae21a23bb
Removing intermediate container aaa29348db29
Step 2 : RUN chef-init --bootstrap
---> Running in 0419866aee89
/bin/sh: chef-init: command not found
time="2015-04-14T18:11:04-07:00" level="info" msg="The command [/bin/sh -c chef-init --bootstrap] returned a non-zero code: 127"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant