Below is my recipe for docker. I have installed docker using chef and its installed properly but when i am trying to pull the image through chef its not working:
# default.rb
package 'docker' do
action :install
end
service 'default' do
action [ :enable, :start ]
end
docker_image 'nginx' do
tag 'latest'
action :pull
end
I am getting below error when running chef client locally and testing:
NoMethodError undefined method `docker_image' for cookbook: docker, recipe: default :Chef::Recipe
As I am new to chef so need help on above issue