chef-provisioning-docker icon indicating copy to clipboard operation
chef-provisioning-docker copied to clipboard

Unable to run docker image after provisioning

Open phanikumar1210 opened this issue 8 years ago • 0 comments

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

phanikumar1210 avatar Sep 03 '16 20:09 phanikumar1210