Questions tagged [docker-swarm]

Docker Swarm is native clustering for Docker. It turns a pool of Docker hosts into a single, virtual host.

Docker Swarm is native clustering for Docker. It turns a pool of Docker hosts into a single, virtual host.

Swarm serves the standard Docker API, so any tool which already communicates with a Docker daemon can use Swarm to transparently scale to multiple hosts: Dokku, Compose, Krane, Flynn, Deis, DockerUI, Shipyard, Drone, Jenkins... and, of course, the Docker client itself.

Like other Docker projects, Swarm follows the "batteries included but removable" principle. It ships with a set of simple scheduling backends out of the box, and as initial development settles, an API will be developed to enable pluggable backends. The goal is to provide a smooth out-of-the-box experience for simple use cases, and allow swapping in more powerful backends, like Mesos, for large scale production deployments.

3165 questions
8
votes
4 answers

Error response from daemon: attaching to network failed, make sure your network options are correct and check manager logs: context deadline exceeded

I am trying to set up docker swarm with an overlay network. I have some hosts on aws while others are laptops running Ubuntu(same as on aws). Every node has a static public IP. I have created an overlay network as: docker network create…
Swapnil Pandey
  • 577
  • 3
  • 8
  • 25
8
votes
1 answer

Elastic in docker stack/swarm

I have swarm of two nodes [ra@speechanalytics-test ~]$ docker node ls ID HOSTNAME STATUS AVAILABILITY MANAGER STATUS ENGINE VERSION mlwwmkdlzbv0zlapqe1veq3uq …
Ryabchenko Alexander
  • 10,057
  • 7
  • 56
  • 88
8
votes
1 answer

Docker Swarm mode routing mesh not working with wireguard VPN

I'm trying to setup a 3 node Docker swarm cluster on Hetzner cloud, using wireguard VPN (setup on interface wg0) to build the local network between nodes. Networking works fine across nodes using VPN IP (ports 7946/tcp , 7946/udp and 4789/udp are…
Alessandro Dionisi
  • 2,494
  • 4
  • 33
  • 37
8
votes
4 answers

Docker Node is Down after service restart

It seems my server ran out of space and I was having some problems with some of the deployed docker stacks. Took me a while to figure it out, but eventually I did and removed a couple of containers and images to free some space. I was able to run…
Christopher Francisco
  • 15,672
  • 28
  • 94
  • 206
8
votes
1 answer

{{node.hostname}} usage in docker-compose.yml in Docker swarm mode

Hi I am looking at above example and trying to run docker swarm stack but getting below error. not sure what I am missing here. docker-compose.yml services: nginx: image: nginx hostname: '{{.Node.Hostname}}' version: '3.3' docker stack…
Raj
  • 85
  • 1
  • 4
8
votes
3 answers

Docker Swarm Overlay Network Not Working Between Nodes

i am trying to connect my docker services together in docker swarm. the network is made of 2 raspberry pi's. i can create an overlay network called test-overlay and i can see that services on either raspberry pi node can connect to the network. my…
X0r0N
  • 1,816
  • 6
  • 29
  • 50
8
votes
3 answers

how to delete unused docker images and containers automatically?

is there a way to instruct docker swarm to automatically run garbage collection and remove all dangling images and containers? I run docker stack rm STACK_NAME and redeploy the stack but this keeps unused objects. I know I can run docker prune to do…
tkyass
  • 2,968
  • 8
  • 38
  • 57
8
votes
2 answers

What is opposite of docker swarm init?

With a single host with a swarm that has been created with init, the host gets networks created etc. There appears to be no 'docker swarm destroy' or similar that purges the system back to a state before the swarm. I did a leave --force but that…
user1867382
  • 414
  • 3
  • 13
8
votes
2 answers

nginx does not automatically pick up dns changes in swarm

I'm running nginx via lets-nginx in the default nginx configuration (as per the lets-nginx project) in a docker swarm: services: ssl: image: smashwilson/lets-nginx networks: - backend environment: -…
sas
  • 7,017
  • 4
  • 36
  • 50
8
votes
1 answer

Docker swarm multiple managers and workers Vs

I have a 3 node docker swarm cluster. We might want to have 2 managers. I know at one time there is only one leader. Since it is a 3 node cluster, I am trying to find some literature to understand what are the pros and cons of multiple managers. I…
curiousengineer
  • 2,196
  • 5
  • 40
  • 59
8
votes
1 answer

Is a traefik config with both docker swarm and consul backend possible?

Are the consul and docker swarm configuration backends compatible? My requirement is that I need to start N traefik containers as a docker service, where they get their dynamic frontends/backends via docker swarm but I also need all N of the…
bitsofinfo
  • 994
  • 3
  • 16
  • 34
8
votes
1 answer

docker swarm container connect to host port

I have a swarm cluster in which I created a global service to run on all docker hosts in the cluster. The goal is to have each container instance for this service connect to a port listening on the docker host. For further information, I am…
Andrew Butler
  • 687
  • 1
  • 6
  • 12
8
votes
3 answers

How to change ip address range of docker swarm ingress network

I use a docker swarm 1.13.1, and when I init the docker swarm or join to docker swarm sometimes it creates a docker_gwbridge network in a "172.19.0.0/16" subnet. But my computer subnet is in the same range, so when it initializes this network the…
Dániel Kis
  • 2,341
  • 5
  • 28
  • 51
8
votes
3 answers

Can I update the hostname of a Docker Node?

Currently all my nodes have the name ubuntu-yakkety. docker node ls ID HOSTNAME STATUS AVAILABILITY MANAGER STATUS d7rdq4n4dmrkhyz4ov7ldr31e ubuntu-yakkety Ready Active iddxyuic586lnla6aw700rdwc …
Matheus Gontijo
  • 1,178
  • 1
  • 12
  • 29
8
votes
2 answers

All external DNS queries fail from within docker container

Current docker version: 1.13.1, build 092cba3. Contents of /etc/resolv.conf: search mycompany.local nameserver 127.0.0.11 options ndots:0 (real company name obfuscated). nslookup on the host itself is 100% fine, but from within container any…
demaniak
  • 3,716
  • 1
  • 29
  • 34