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:

  • Dockerfile ADD https://zzzz x509: certificate signed by unknown authority
  • Crontab doesn't have credentials
  • Signatures couldn't be verified because the public key is not available error while installing docker
  • Sonarqube doesn't start from Docker
  • Is there any issues with creating lots of Docker tags for Continuous Delivery?
  • Accessing environment variables in Docker containers linked with --link
  • ---
    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?

  • docker-machine ssh on AWS
  • run a meteor app on docker - doesn't open in localhost
  • How can I make a local docker container?
  • Docker - Running nginx as a proxy for Redmine
  • Custom Installer for Unix Platform to install Python, Java, MySQL
  • How can I run both Docker and Android Studio Emulator on Windows?
  • 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.