Docker Community Forums

Share and learn in the Docker community.

Can I create a windows based docker swarm?

(Ralph Kincade) #1

can I used %100 docker running on windows 2016 for a swarm , will this work or is it still unsupported ?

(Patrick Lang) #2

You can currently create or join a swarm-mode cluster on Windows with v1.13 or v1.14/master, but overlay networking will need a future Windows update before it will work. Both Linux & Windows nodes can be in the same swarm.

@stefanscherer posted a working setup in Vagrant on GitHub . Check out the scripts for the basics but it works essentially the same way as on Linux - docker swarm init, docker swarm join

(Ralph Kincade) #3

I am a litte confused about this , the new swarm the one that works with just a “swarm intit” I think this is called “swarm mode” , so this cluster here I did a docker info should work right ?

docker@docker-datacenter-demo-1:~$ docker info
Containers: 23
Running: 14
Paused: 0
Stopped: 9
Images: 17
Server Version: 1.12.3-cs4
Storage Driver: aufs
Root Dir: /var/lib/docker/aufs
Backing Filesystem: extfs
Dirs: 143
Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Volume: local
Network: bridge host null overlay
Swarm: active
NodeID: 8tin4lojdvdmx52be64ml2khg
Is Manager: true
ClusterID: al05f6w6xu7t60sfp6javkpia
Managers: 3
Nodes: 5
Task History Retention Limit: 10
Snapshot Interval: 10000
Heartbeat Tick: 1
Election Tick: 3
Heartbeat Period: 6 seconds
CA Configuration:
Expiry Duration: 3 months
External CAs:

(Ralph Kincade) #4

this is what I a currently looking at

(Patrick Lang) #5

can you try docker node ls? The new swarm mode in v1.13+ doesn’t show all nodes with docker info, only the current one.

(Ralph Kincade) #6

right on. I can see the nodes with “docker node ls” and they do not appear
correctly with UCP , this is expected behavior . I was looking only at UCP
and thinking it was not working
thanks !

(Ralph Kincade) #7

I am revising this issue with a vengeance what is the official way to do this ?

I am attempting to run in Azure a Swarm cluster that can run both Linux and Windows containers