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:

  • Docker Processes Shown on Host Process List
  • Run `docker-php-ext-install` FROM container other than php
  • Docker: Staging multiple containers for one application
  • how does Flocker implement image migration while doing container migration between hosts
  • Error building syntaxnet using Dockerfile
  • how to map database from couchdb container to another containers webapp in same docker-compose file
  • ---
    driver:
      name: docker
    
    provisioner:
      name: chef_zero
    
    verifier:
      name: inspec
    
    platforms:
      - name: centos-7.2
        driver_config:
          image: centos:7.2
          platform: centos
    
    suites:
      - name: zaz
        run_list:
          - 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 http://www.docker.io/gettingstarted/
    >>>>>> ----------------------
    >>>>>> 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:

    backtrace:
    - "/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?

  • Ahow to use multiple terminals in the docker container?
  • fleetctl load hello.service hangs
  • Published k8s service is not available
  • Can I use Windows 10 Insider preview to build a docker image
  • How should I pass sensitive environment variables to Amazon ECS tasks?
  • Where does docker store it's temp files during extraction?
  • 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.