Kitchen and Kitchen-docker

I am trying to use kitchen-docker driver on a GNU/Linux machine. I have installed the kitchen-docker gem using chef gem install command.

This is an extract of my .kitchen.yml file:

  • Running simple script using docker-compose
  • “docker-machine rm” failing on non-existent EC2 instance
  • How to execute Docker query command on all containers?
  • How can I pass build args with a remote image in docker-compose.yml?
  • How can a Docker Container get host's system information(df, ps)?
  • docker: certificate signed by unknown authority even though proxy and --insecure-registry set
  • ---
      name: docker
      name: chef_zero
      name: inspec
      - name: centos-7.2
          image: centos:7.2
          platform: centos
      - name: zaz
          - recipe[foo::bar]

    I have Docker installed on it’s latest version using Docker repositories for Centos. The service is running and Docker is in my path. However when I try to run a simple kitchen list using that .kitchen.yml I get this error:

    [FakeyMcFakeFace@workstation foo]$ kitchen list
    >>>>>> ------Exception-------
    >>>>>> Class: Kitchen::UserError
    >>>>>> Message: You must first install the Docker CLI tool
    >>>>>> ----------------------
    >>>>>> Please see .kitchen/logs/kitchen.log for more details
    >>>>>> Also try running `kitchen diagnose --all` for configuration

    Why is docker not being recognized by Kitchen? If I run the diagnose -all option I just see it is failing on the dependencies check:

    - "/home/FakeyMcFakeFace/.chefdk/gem/ruby/2.3.0/gems/kitchen-docker-2.6.0/lib/kitchen/driver/docker.rb:93:in
      `rescue in verify_dependencies'"

    What am I missing here?

  • Run a docker image on Windows results in “oci runtime error: exec: ”bash“: executable file not found in $PATH.”
  • How can I develop in docker container with intellij?
  • Unable to login to private docker registry
  • What causes flume with GCS sink to throw a OutOfMemoryException
  • Error running `drone exec` on Windows 10
  • openerp-server: error: no such option: -p
  • One Solution collect form web for “Kitchen and Kitchen-docker”

    To copy down from the comments, kitchen-docker requires passwordless sudo (if using sudo) right now, the error message is misleading

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.