Skip to content
This repository has been archived by the owner on Jul 6, 2018. It is now read-only.

Unable to run docker image after provisioning #104

Open
phanikumar1210 opened this issue Sep 3, 2016 · 0 comments
Open

Unable to run docker image after provisioning #104

phanikumar1210 opened this issue Sep 3, 2016 · 0 comments

Comments

@phanikumar1210
Copy link

I have successfully provisioned docker image. But I was unable to run the docker image as it is resulting in a hung. Could anyone help me on this.

require 'chef/provisioning/docker_driver'
with_driver 'docker'

machine_image 'docker_miracle_chef' do
recipe 'docker_cookbook'
recipe 'java'
recipe 'apache_latest'
machine_options(
:docker_options => {
:base_image => {
:name => 'ubuntu',
:repository => 'ubuntu',
:tag => '14.04'
}
}
)
end
machine 'docker_miracle_chef' do
from_image 'docker_miracle_chef'
machine_options(
:docker_options => {
:ports => "80:80"
}
)
docker_connection: {
read_timeout: 72
}
end

I am trying to run docker image as docker run -it docker_miracle_chef

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

No branches or pull requests

1 participant