Comments (6)
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.
@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.
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.
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.
@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.
@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)
- OpenMax kernel device missing
- Invalid `authorized_keys` file when `ssh_authorized_keys` specified in `user-data` HOT 2
- There is a new 8GB variant of the Raspberry Pi 4 HOT 4
- [Request] Pi 4 USB boot support HOT 1
- Issue with setting up eth0 with static ip address HOT 9
- Windows Support HOT 5
- Unable to add any containers HOT 1
- Kubernetes CONFIG_MEMCG
- Okay, so who's being funny? Static IP are being set n+2*42! HOT 1
- Fix for static IP breaks docker start up? HOT 1
- Waiting for SSH to be available HOT 1
- Camera is not supported...
- Docker official images exit with error 139 immediately
- Support other achitectures HOT 1
- SSH not working after boot
- current time is set too late during cloud-init HOT 2
- does not work with Pi Zero 2
- Upgrade to bullseye HOT 1
- CVE-2021-4034 Discovered
- Has this project been abandoned? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from image-builder-rpi.