wekaco / WKC-5P

ヒューマノイド「WKC-5P」
0 stars 0 forks source link

docs/swarm Document swarm setup with docker-machine #27

Open dmtrs opened 6 years ago

dmtrs commented 6 years ago

https://gist.github.com/londoncalling/4a6f09647c7446d1f25fe54106db1334 https://docs.docker.com/machine/install-machine/ https://docs.docker.com/machine/get-started/#use-machine-to-run-docker-containers

docker-machine create --driver "generic" --generic-ip-address 192.168.0.198 --generic-ssh-user root --generic-ssh-key ~/.ssh/wkc-5p --engine-storage-driver overlay2 --swarm-master node1

https://blog.alexellis.io/docker-swarm-on-raspberry-pi/

dmtrs commented 6 years ago

Was able to to run a dietpi to a docker swarm manager:

docker-machine create \
  --driver "generic" \
  --generic-ip-address 192.168.0.198 \
  --generic-ssh-user root \
  --generic-ssh-key ~/.ssh/wkc-5p \
  --engine-storage-driver overlay2 \
  --swarm-master \
  --swarm-image "wekaco/swarm-arm:latest" node1

Pushed from https://github.com/wekaco/swarm alternatively need to setup a registry. Dont know if feasible to avoid swarm-arm due to provisioning of docker-machine code.

See #29