Created
February 22, 2016 02:41
-
-
Save vimagick/332100c8ab80d2ca6bd2 to your computer and use it in GitHub Desktop.
Use docker-machine to provision AlarmPi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~ $ docker-machine create -d generic --generic-ip-address 192.168.1.200 --generic-ssh-user root --generic-ssh-key ~/.ssh/id_rsa alarmpi | |
Running pre-create checks... | |
Creating machine... | |
(alarmpi) Importing SSH key... | |
Waiting for machine to be running, this may take a few minutes... | |
Detecting operating system of created instance... | |
Waiting for SSH to be available... | |
Detecting the provisioner... | |
Provisioning with arch... | |
Copying certs to the local machine directory... | |
Copying certs to the remote machine... | |
Setting Docker configuration on the remote daemon... | |
Checking connection to Docker... | |
Docker is up and running! | |
To see how to connect your Docker Client to the Docker Engine running on this virtual machine, run: docker-machine env alarmpi | |
~ $ docker-machine env alarmpi | |
export DOCKER_TLS_VERIFY="1" | |
export DOCKER_HOST="tcp://192.168.1.200:2376" | |
export DOCKER_CERT_PATH="/Users/kev/.docker/machine/machines/alarmpi" | |
export DOCKER_MACHINE_NAME="alarmpi" | |
# Run this command to configure your shell: | |
# eval $(docker-machine env alarmpi) | |
~ $ eval $(docker-machine env alarmpi) | |
~ $ docker info | |
Containers: 0 | |
Running: 0 | |
Paused: 0 | |
Stopped: 0 | |
Images: 0 | |
Server Version: 1.10.1 | |
Storage Driver: overlay | |
Backing Filesystem: extfs | |
Execution Driver: native-0.2 | |
Logging Driver: json-file | |
Plugins: | |
Volume: local | |
Network: bridge null host | |
Kernel Version: 4.1.17-1-ARCH | |
Operating System: Arch Linux ARM | |
OSType: linux | |
Architecture: armv7l | |
CPUs: 4 | |
Total Memory: 923.1 MiB | |
Name: alarmpi | |
ID: R77V:KB45:6632:OUIX:D4CT:VEGJ:RYA6:A7ZX:7TEJ:SW2B:2SL7:5PXD | |
WARNING: No memory limit support | |
WARNING: No swap limit support | |
WARNING: No oom kill disable support | |
Labels: | |
provider=generic |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment