title: How to solve the error undefined method `docker_image' for cookbook in chef-client process
body: <p>I am trying to bootstrap a new server. I get an error with the <code>docker_image</code> resource when I run the <code>knife bootstrap</code> command on my server. Please see this more detailed logs. Thank you.</p>
  <pre><code>Synchronizing cookbooks:
    - logrotate (2.2.2)
    - chrony-ntp (1.2.0)
    - docker (4.9.3)
    - cmlabs-docker-postgres (0.3.0)
  
  ...
  
  NoMethodError
  -------------
  undefined method `docker_image' for cookbook: cmlabs-docker-postgres, recipe: default :Chef::Recipe
  ...
  </code></pre>
  <h2>Relevant File Content:</h2>
  <pre><code>/var/chef/cache/cookbooks/cmlabs-docker-postgres/recipes/default.rb:
  
   12:  service_collation = node['cmlabs-docker-postgres']['service_collation']
   13:  service_maxconn = node['cmlabs-docker-postgres']['max_connections']
   14:
   15:  docker_service 'default' do
   16:    action [:create, :start]
   17:  end
   18:
   19&gt;&gt; docker_image 'postgres' do
   20:    tag node['cmlabs-docker-postgres']['tag']
   21:    action :pull
   22:  end
   23:
   24:  docker_network node['cmlabs-docker-postgres']['network'] do
   25:    action :create
   26:  end
   27:
   28:  docker_container 'postgres' do
  </code></pre>
  <h2>System Info:</h2>
  <pre><code>chef_version=17.9.42
  platform=centos
  platform_version=7.9.2009
  ruby=ruby 3.0.3p157 (2021-11-24 revision 3fb7d2cadc) [x86_64-linux]
  program_name=/usr/bin/chef-client
  executable=/opt/chef/bin/chef-client
  </code></pre>