Questions tagged [docker-swarm]

Docker-swarm is a tool that is able to create a cluster of docker nodes and deploy containers in this cluster.

186 questions
0
votes
1 answer

How to host Asp.net application in docker swarm mode load balancer

I have asp.net application now that application is running under VM host iis. i am planing to deploy using docker swarm. But i am facing machinekey issue. how i can run this application using docker swarm mode. We will scale dynamically in and out.…
karthick
  • 327
  • 1
  • 4
  • 12
0
votes
1 answer

How can I prevent (almost) all non-VPN traffic using IPtables to a Docker service?

I have a server that I want to be accessible on the public Internet via SSH only, but I want it to be able to connect out to a VPN, and bind services to its VPN interface. I'm using Linode to host a Ubuntu 16.04.2 LTS VM, ZeroTier for my VPN layer,…
Micah R Ledbetter
  • 513
  • 1
  • 5
  • 19
0
votes
2 answers

Docker documentation for external load balancer to docker hosts in swarm mode (why?)

In reading the documentation for Docker Swarm 1.12 there is a section describe how to configure HAProxy to load balance traffic to swarm hosts. https://docs.docker.com/engine/swarm/ingress/#/configure-an-external-load-balancer If I understand Docker…
Brett Mathe
  • 181
  • 5
0
votes
2 answers

Browser services' container in Docker Swarm mode

I've created 3 vm using docker-machine: docker-machine create -d virtualbox manager1 docker-machine create -d virtualbox worker1 docker-machine create -d virtualbox worker2 these are theirs ip: docker-machine ls NAME ACTIVE DRIVER …
pier92
  • 21
  • 5
0
votes
2 answers

Docker swarm and volumes

Considering Docker 1.12. I understand that volumes are not per say portable across the swarm and that solutions like Flocker would be better for larger clusters. Nevertheless, is the option I describe below acceptable for my setup? Setup A swarm…
Cedric H.
  • 159
  • 1
  • 8
0
votes
2 answers

Docker Machine/Swarm with Consul -- secure by default?

I've used the commands from this gist (duplicated below) to create a Docker Swarm using Consul. docker-machine create \ --driver=digitalocean \ --digitalocean-access-token=$DO_TOKEN \ --digitalocean-size=512mb \ --digitalocean-region=nyc3 \ …
Ryan Kennedy
  • 203
  • 2
  • 11
0
votes
1 answer

Docker Swarm installation issues

I am unable to install docker swarm on my Ubuntu 14.04 system. I followed the instruction from the github page https://github.com/docker/swarm $ mkdir -p $GOPATH/src/github.com/docker/ $ cd $GOPATH/src/github.com/docker/ $ git clone…
vivek o.s
  • 9
  • 3
0
votes
0 answers

Docker swarm bind port to all host interface

Host machine have next network interface: docker0: flags=4099 mtu 1500 inet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255 ether 02:42:b5:1e:5a:50 txqueuelen 0 (Ethernet) RX packets 0 …
0
votes
0 answers

HTTP Base Auth for a Swarm service behind Traefik reverse proxy

I'm running a Docker Swarm cluster with services behind Traefik2 with HTTPS Base Auth enabled in Traefik itself. Now i'd like to add RabbitMQ with its management interface and make the web management interface accessible through Traefiks port…
0
votes
0 answers

Docker swarm: communication between replicas of the same service

I have a Docker swarm of two machines, and started a service with two replicas: $ docker service create --replicas 2 --name myservice --network ingress alpine:latest sleep 1d Now I've got two containers myservice.1. and…
grep
  • 186
  • 1
  • 3
0
votes
1 answer

Docker in docker - how to ensure it's cleaned up after itself?

I've built a Swarm-based Docker setup for our on-prem DevOps pipelines. Docker-based pipeline agents are started and can perform build operations. I also have a few of those agents capable of building new docker images - this was enabled by binding…
MBender
  • 381
  • 2
  • 8
  • 25
0
votes
1 answer

What if I don't declare a reused volume in the top level `volumes` key of a compose file

The compose specification says: To reuse a volume across multiple services, a named volume MUST be declared in the top-level volumes key. I am currently trying to debug an application with a docker bind mount issue. I noticed that the compose.yaml…
0
votes
1 answer

Swarm nodes cannot communicate

I have a couple of machines running Ubuntu Server 22.04.1 LTS and Docker version 20.10.17. I've set up a swarm containing both the machines. These machines have ports tcp/2377, udp/4789, udp/7946, and tcp/7946 open. I've done no firewall…
freebie
  • 101
  • 1
0
votes
2 answers

How to block access to a specific IP address from docker swarm services

I deployed my service with docker swarm in the Digital Ocean VPC. I want to block access from the service to http://169.254.169.254/metadata/v1.json which is the metadata API for security reasons. Does anyone know how to do that? Thanks,
Quy Tang
  • 11
  • 6
0
votes
1 answer

docker swarm nfs volume not showing all directories

I've hit a wall with trying to figure this out. I'm running docker swarm on two nodes and I created an nfs volume to my synology. Inside of the container: root@container:/data# ls -ltr drwxr-xr-x 4 root root 4096 Jun 24 22:59 unprocessed which is…
pgreen2
  • 203
  • 1
  • 3
  • 9