GithubHelp home page GithubHelp logo

Comments (6)

StefanScherer avatar StefanScherer commented on July 27, 2024 1

Using the latest docker-machine v0.6.0-rc2 binary also works "out-of-the-box" with some additional options:

docker-machine -D create -d generic --generic-ip-address 192.168.10.23 --generic-ssh-user pirate --engine-storage-driver overlay hypriotos

Creating a swarm probably needs the --swarm-image hypriot/rpi-swarm:latest, but I haven't tried it yet.

Ping @benediktarnold :-)

from image-builder-rpi.

StefanScherer avatar StefanScherer commented on July 27, 2024 1

@jottr No problem 😃

OK, for the 0.6/0.7 HypriotOS images based on Raspbian you have to prepare the OS a little bit to work with standard docker-machine binary. Have a look at the blog post http://blog.hypriot.com/post/how-to-setup-rpi-docker-swarm/ beginning with Prepare your Pi’s for docker-machine.

In /etc/os-release the string raspbian must be changed to debian.

from image-builder-rpi.

StefanScherer avatar StefanScherer commented on July 27, 2024

Oh, there's another interesting option: --engine-install-url "https://get.docker.com"

So we could have a workaround with something like --engine-install-url "https://get.hypriot.com" 😄

from image-builder-rpi.

jottr avatar jottr commented on July 27, 2024

Hopefully I'm not spamming:
If I read @StefanScherer post correctly, using the official docker-machine binary from 0.6.0-rc2 should be working out of the box.
I've tried with 0.6.0, build e27fb87 and 0.7.0-rc1:

HypriotOS: root@jupiter in ~
$ docker --version
Docker version 1.10.3, build 20f81dd
/tmp/docker-machine-Darwin-x86_64 -D create \
-d generic \
--generic-ip-address 192.168.2.134  \
--generic-ssh-key /Users/jottr/.ssh/id_rsa \
--engine-storage-driver overlay rpi

Docker Machine Version:  0.7.0-rc1, build 0fb68ca
Found binary path at /tmp/docker-machine-Darwin-x86_64
Launching plugin server for driver generic
Plugin server listening at address 127.0.0.1:54347
() Calling .GetVersion
Using API Version  1
() Calling .SetConfigRaw
() Calling .GetMachineName
(flag-lookup) Calling .GetMachineName
(flag-lookup) Calling .DriverName
(flag-lookup) Calling .GetCreateFlags
Found binary path at /tmp/docker-machine-Darwin-x86_64
Launching plugin server for driver generic
Plugin server listening at address 127.0.0.1:54351
() Calling .GetVersion
Using API Version  1
() Calling .SetConfigRaw
() Calling .GetMachineName
(rpi) Calling .GetMachineName
(rpi) Calling .DriverName
(rpi) Calling .GetCreateFlags
(rpi) Calling .SetConfigFromFlags
Running pre-create checks...
(rpi) Calling .PreCreateCheck
(rpi) Calling .GetConfigRaw
Creating machine...
(rpi) Calling .Create
(rpi) Importing SSH key...
(rpi) Calling .GetConfigRaw
(rpi) DBG | IP: 192.168.2.134
(rpi) Calling .DriverName
(rpi) Calling .DriverName
Waiting for machine to be running, this may take a few minutes...
(rpi) Calling .GetState
Detecting operating system of created instance...
Waiting for SSH to be available...
Getting to WaitForSSH function...
(rpi) Calling .GetSSHHostname
(rpi) Calling .GetSSHPort
(rpi) Calling .GetSSHKeyPath
(rpi) Calling .GetSSHKeyPath
(rpi) Calling .GetSSHUsername
Using SSH client type: external
&{[-o BatchMode=yes -o PasswordAuthentication=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none [email protected] -o IdentitiesOnly=yes -i /Users/jottr/.docker/machine/machines/rpi/id_rsa -p 22] /usr/bin/ssh <nil>}
About to run SSH command:
exit 0
SSH cmd err, output: exit status 255:
Error getting ssh command 'exit 0' : Something went wrong running an SSH command!
command : exit 0
err     : exit status 255
output  :

Pointers to a solution are more than welcome.

from image-builder-rpi.

StefanScherer avatar StefanScherer commented on July 27, 2024

@jottr The new SD image does not have a SSH login for root, only user pirate. You have to specify --generic-ssh-user pirate as well.

from image-builder-rpi.

jottr avatar jottr commented on July 27, 2024

@StefanScherer so it seems I did indeed hijack this issue. I'm using the 0.7.0 Berry (beta) avalailable on the download page. Sorry for that.

The pirate user is not available. After copying my ssh key, I am able to ssh on to the pi as a root user.
Trying to to the same thing with

docker-machine -D create -d generic \
--generic-ip-address 192.168.2.134 \
--generic-ssh-user root \
--engine-storage-driver overlay rpi

results in the following error:

#...
SSH cmd err, output: <nil>: PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)"
NAME="Raspbian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=raspbian
ID_LIKE=debian
#...
Error creating machine: Error detecting OS: OS type not recognized

from image-builder-rpi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.