Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Docker Machine v0.5.1 breaks compatibility with v0.5.0 drivers #2325

@janeczku

Description

@janeczku

This particularly affects use of drivers not distributed with the machine binary.

For simplicity this is demonstrated with the virtualbox driver.

Steps to reproduce

  1. $ git clone https://github.com/docker/machine.git
  2. $ cd machine && git checkout v0.5.0
  3. $ go build -a -o /usr/local/bin/docker-machine-driver-virtualbox cmd/machine-driver-virtualbox.go
  4. $ git checkout v0.5.1
  5. $ go build -a -o /usr/local/bin/docker-machine cmd/machine.go
  6. $ docker-machine create -d virtualbox

Expected result

Machine continuous to work

Actual result

Error occurs and Machine exits

WARNING >>> Error attempting heartbeat call to plugin server: rpc: can't find service RPCServerDriver.Heartbeat
Error attempting to invoke binary for plugin 'virtualbox': rpc: can't find service RPCServerDriver.GetVersion

This is probably caused by commit 89d9854 which changed the RPC API interface breaking compatibility with all drivers compiled against v0.5.0 or earlier.

Reference PR #2321
/cc @nathanleclaire @dmp42

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