linux - How do you setup a Docker swarm on Raspberry Pis with one external (USB) storage device? -


i have set of raspberry pi 3s connected network , started raspian lite , installed docker on of them.

on first machine run: docker swarm init --advertise-addr 192.168.1.50

on rest of them run generated command: docker swarm join --token swmtkn-1-abc... 192.168.1.50:2377

okay cool have swarm! first pi has usb external hdd attached it. want run containers use data on external storage device.

  1. how can share storage device entire swarm?
  2. or how can force containers run on pi attached storage device?
  3. or there better way?


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -