Skip to content

Specifying docker_host_url does not work #321

@tomhughes

Description

@tomhughes

👻 Brief Description

Specifying docker_host_url in the configuration does not work because dokken still tries to connect to the default docker and errors our when that fails.

Version

kitchen-dokken 2.20.3

Environment

Fedora 39

Scenario

Trying to use a user podman instance as the docker implementation.

Steps to Reproduce

Specify the URL as follows:

driver:
  name: dokken
  docker_host_url: unix:///run/user/1000/podman/podman.sock

Expected Result

It works.

Actual Result

It errors out trying to make a TCP connection to docker:

kitchen-dokken could not connect to the docker host at tcp://127.0.0.1:2375. Is docker running?

➕ Additional context

The code at

default_config :docker_info, docker_info
causes docker_info to be called which tries to make a connection to default_docker_host which errors out.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions