I ran into this problem yesterday and found a workaround (or solution?) Today. This applies to OS X Sierra and the latest Docker and VirtualBox at the time of this writing.
Navigating through docker Getting Started docs ( https://docs.docker.com/get-started/part4/#create-a-cluster ), the command:
docker-machine scp docker-compose.yml myvm1:~
Returned immediately:
Lost connection Exit Status 1
Finally, I tracked it down to my / etc / ssh / ssh _config when I tried to run the classic scp command without binding the ssh dock. The scp command returned immediately, complaining of the following incompatible lines:
GSSAPIKeyExchange no GSSAPITrustDNS no
I commented on this, which eased the problem, and the scp dock was able to work as intended. I did not find this solution elsewhere.
Below are my system features. Hope this helps someone out there.
OS
OS X Sierra System Version: macOS 10.12.3 (16D32) Kernel Version: Darwin 16.4.0
Docker
Client: Version: 17.05.0-ce API version: 1.29 Go version: go1.7.5 Git commit: 89658be Built: Thu May 4 21:43:09 2017 OS / Arch: darwin / amd64
Server: Version: 17.05.0-ce API version: 1.29 (minimum version 1.12) Go version: go1.7.5 Git commit: 89658be Built: Thu May 4 21:43:09 PM OS / Arch: linux / amd64 Experimental: true
Virtualbox
Version 5.1.22 r115126
source share