Questions tagged [docker-swarm]

1

votes
2

answer
1.5k

Views

Run docker service on HTTPS

Currently, I run a simple docker container by using the following files. DockerFile FROM microsoft/aspnet:4.7.1 WORKDIR /inetpub/wwwroot EXPOSE 80 COPY index.html . docker-compose.yml version: '3.4' services: testapp: image: mytestapp:${TAG:-latest} build: context: . dockerfile: Dockerfile docker-co...
marvelTracker
1

votes
1

answer
992

Views

Passing aws credentials to Docker

I have a docker container golang code which interacts with aws resources. In the testing environment, we use iam role. But How do I test locally. How to use aws credentials to run my docker locally.I am using docker file to build the docker image.
user846445
1

votes
1

answer
55

Views

Docker Scheduling Strategy Clarification

I am new to docker, was playing around trying to run multiple containers on a swarm with spread strategy. Swarm had 3 nodes & each node already had 2 containers , and i ran 3 more docker run commands so that each node gets 1 more container. As I was running docker containers without specifying memor...
Lav
1

votes
0

answer
88

Views

How to create a Docker in Docker Service on Docker Swarm (Swan Mode)

I would like to run (Docker-in-Docker) DIND inside a SWARM cluster(Swarm Mode). As Swarm does not support the --privileged flag its not possible to start a DIND Container like you see in the tutorials. However --privileged can be 'emulated' What --cap-add flags should be used in oder to be able to...
Vadimo
1

votes
1

answer
612

Views

Docker stack deploy postgresql slave container restart in few minutes

Run this YML with docker stack in swarm. Docker stack file to create Postgresql master/slave setup with 2 slaves. The slave container will restart in few minutes repeat and repeat.... How to fix it ? docker stack deploy -c docker-stack-postgresql.yml post docker-stacl-postgresql.yml version: '3' ser...
Kevin Lin
1

votes
0

answer
590

Views

Docker Swarm Nodes through VPN

I have a somewhat esotieric Swarm setup with the master node being a Digital Ocean droplet, and Raspberry Pi 2 worker nodes that are stuck behind a network that I don't control that blocks all incoming connections. Because of that it is impossible to connect to any service running on those nodes eit...
rushsteve1
1

votes
0

answer
81

Views

Web site redirects with incorrect URL

I'm trying to deploy a wordpress in a swarm at the following address: http://apps.exemplo.com/ti/bc When you access http://apps.example.com/ti/bc, wordpress redirects to http://apps.example.com/wp-admin/install.php omitting 'ti / bc'. Is it possible to correct this behavior only by using traefik, wi...
Lucas
1

votes
0

answer
85

Views

Virtualbox/Swarm - NAT and HOSTonly Network

I’m quite new in docker world. I have a local virtulbox setup: vm1=swarm manager (mysql,visualizer) IP: 192.168.99.100 vm2= wordpress service IP: 192.168.99.101 I can reach the application on both IP’s 100/101. But I would like to also use the localhost in order to port forward localhost to NET...
DaWe4444
1

votes
0

answer
214

Views

How to prevent nginx errors due to docker boot sequence

I have managed swarm using compose.yml as follows. compose.yml version: '3' services: web: image: nginx depends_on: - db - api deploy: replicas: 2 update_config: parallelism: 2 delay: 10s db: image: mysql environment: MYSQL_ROOT_PASSWORD: password MYSQL_DATABASE: main MYSQL_USER: root MYSQL_PASSWORD...
sukho
1

votes
0

answer
256

Views

How to delete offline (slave/nodes) from Jenkins in SWARM mode

How do I delete a node from Jenkins? Jenkins operates in Docker Swarm mode. When I am trying to remove the offline container, swarm keeps generating new containers
Enki
1

votes
0

answer
243

Views

Docker swarm overlay network between subnets

I'm trying to set up a Docker swarm cluster with CoreOS. I have 3 hosts with static IPs in a subnet for the managers, and 5 hosts with DHCP in a subnet for the workers. There is a manually configured static route that allows me to talk to the manager subnet. IPs are changed. [email protected] $ ping 10....
Nate Mara
1

votes
2

answer
455

Views

Not able to run service using docker stack in docker swarm

Here is the docker-compose file that I once used to successfully run docker container using docker-compose. Now trying to deploy using the docker stack. My manager and workers node are ready. docker-compose.yml version: '3' services: prometheus: image: prom/prometheus volumes: - ./prometheus.yml:/et...
Tara Prasad Gurung
1

votes
1

answer
3.4k

Views

privileged mode in docker compose in a swarm

I am using docker-compose.yml to deploy services in a docker swarm which has cluster of raspberry pis. My services require access to the raspberry pi GPIO and needs privileged mode. I am using docker version 18.02 with docker-compose version 3.6. When I deploy the stack, I receive the following mess...
eth crypt
1

votes
0

answer
231

Views

golang gRPC update image in docker swarm having to reconnect clients each time

I have a docker swarm on three nodes plus an external mysql service (outside of the swarm). I am programming micro-services with an API Gateway in golang and gRPC. I have two problems. The first problem is when I push an update a service with docker swarm update --image ... myservice I get the erro...
Varcorb
1

votes
1

answer
842

Views

Running graylog cluster in docker swarm mode

I have graylog server running as a docker container on my host. Now I want to run a graylog cluster using docker swarm. Is it possible to do it. If possible should i go with an extra load balancer like nginx.
1

votes
1

answer
199

Views

Docker swarm for active-standby service

Is it possible to use docker swarm for an application which is having active and standby instances (for example: PostgresDB in active and standby) Currently we have bare metal solution where we run active instance and standby instance on separate hosts. If swarm is used, then it is creating cluste...
sheetalmane4
1

votes
2

answer
436

Views

Cannot Connect Container on Overlay Network: [emerg] invalid host

I am trying to reverse proxy a request through an nginx container in a swarm to a standalone container which shares the same overlay network. tldr; I receive the following error: 2018/03/15 19:00:35 [emerg] 1#1: invalid host in upstream 'http://nginx' in /etc/nginx/nginx.conf:96 nginx: [emerg] inval...
clo_jur
1

votes
0

answer
192

Views

traefik - support for remote CA-signed docker endpoints?

We want to connect traefik to a remote docker endpoint, behind a load balancer using ssl, without authenticating the server / client with self-signed certificates: traefik (docker client) > tcp://domain:2376 (tls) > load balancer > tcp://ip:2375 (non tls) > swarm manager (docker daemon) Our docker d...
Nixxxon
1

votes
2

answer
895

Views

Docker Swarm Deploy a local Dockerfile

I am trying to deploy a stack of services in a swarm on a local machine for testing purpose and i want to build the docker image whenever i run or deploy a stack from the manager node. Is it possible what I am trying to achieve..
DevScript
1

votes
0

answer
57

Views

Custom orchestration strategy for Docker Swarm

I was looking to use Docker's swarm mode as a distributed container orchestration solution but using custom orchestration strategies/algorithms. Using the official nomenclature, what I want to modify is the scheduler. Is this possible? Does Docker offer any kind of hook/plugin system to define your...
Adirio
1

votes
1

answer
73

Views

Re-resolve of backend in nginx SNI docker swarm

I am using nginx to do TCP forwarding based on hostname as discussed here: Nginx TCP forwarding based on hostname When the upstream containers are taken down for a short period of time (5 or so mins), and then brought back up, nginx doesn't seem to re-resolve them (continue to get 111: connection re...
thewire247
1

votes
0

answer
362

Views

Deploy apache storm cluster from docker compose file

We want to deploy apache-storm as cluster in cluster hosts. More precisely we need have supervisor instances in all host-nodes. How we can deploy storm cluster with docker-compose file? We have docker-compose.yml file: version: '3.6' services: zookeeper: image: zookeeper networks: - esnet1 deploy: m...
Ivan
1

votes
0

answer
17

Views

Can registry:2 have replicas in worker nodes?

When setting up docker registry:2 onto a docker-swarm, is it okay to have it have more than one replica and have it run in worker nodes? It uses a CIFS volume to store the data. I'm also running registry behind a nginx http proxy. Which adds a bit of complexity. However, I can at least say that I...
1

votes
1

answer
293

Views

Error in bitbucket-pipeline: docker stack deploy requires API version 1.25, but the Docker daemon API version is

When I try to deploy from Bitbucket Pipeline: docker stack deploy -c docker-compose.yml --with-registry-auth myapp receive err: docker stack deploy requires API version 1.25, but the Docker daemon API version is On manager: ✗ docker version Client: Version: 18.03.0-ce-rc4 API version: 1.37...
Alukos
1

votes
1

answer
670

Views

Service in Traefik path does not redirect to service path for additional requests

I have a VM with a subdomain - e.g. mysubdomain.notmydomain.com, as visible in the logs below - that runs a single node Docker Swarm (for simplicity) and uses Traefik as a reverse proxy for various services. I managed to simplify my issues with different services to the one I am sharing here now. E...
martwetzels
1

votes
0

answer
226

Views

Docker swarm change advertise-addr if leader node fails

Scenario: A swarm cluster of 5 nodes, with three managers M1 (leader), M2, M3 and two workers W1, W2. The advertise-addr for the swarm was the IP address of M1. If M1 for some reason fails and is no longer part of the cluster, I find that I cannot promote a worker node to a manager or even rejoin M1...
Arun Jose
1

votes
0

answer
261

Views

add mysql user for container with exact IP address

I can't figure this one out. Below is my docker compose file. This is a docker swarm but all on a single host (just testing the setup). I'm trying to add an app user to mysql so the web container can access the db container's mysql server. I do not want to use a generic host wildcard as the db co...
ktravelet
1

votes
0

answer
20

Views

Cannot deploy my app on a cloud provider

I cannot start my swarm in docker cloud. UNREACHABLE Docker Cloud is receiving heartbeats, but cannot connect to the swarm Resolution: Swarm is not publicly reachable, it may be behind a firewall or NAT
nour
1

votes
1

answer
174

Views

Docker Swarm Error Response

I'm trying to run the tutorial to use my chain code on multiple hosts. After copying this (with PC 1's output of course): docker swarm join — token SWMTKN-1–3as8cvf3yxk8e7zj98954jhjza3w75mngmxh543llgpo0c8k7z-61zyibtaqjjimkqj8p6t9lwgu 172.16.0.153:2377 from PC 1 to PC 2, I'm getting an error out...
pjs
1

votes
0

answer
855

Views

Postgres:10 in docker swarm cluster. Database system is shut down

I use postgres:10 (https://hub.docker.com/_/postgres/) image for DB. It is deployed in docker swarm cluster. After running DB replica I got database system is shut down in DB's log. 2018-05-11 10:26:53.073 UTC [1] LOG: listening on IPv4 address '0.0.0.0', port 5432, 2018-05-11 10:26:53.073 UTC [1]...
yuklia
1

votes
1

answer
40

Views

What does it mean creating network in docker?

During reading tutorial about docker swarm I came across on follwing thing: docker network create --opt encrypted --subnet 100.0.0.0/24 -d overlay net1 What does it do? And how does it work internally? Maybe, does it create some network namespace? What does it mean overlay. Could someone explain...
CypherFancy
1

votes
1

answer
105

Views

Docker overlay DNS cant resolve Container Name

I have 2 Docker Hosts with identical Docker Version and Configs. Since yesterday i have a Problem with the Overlay Networks on one of the Hosts. What i did: docker network create -d overlay --attachable test_network docker run --rm -it --network='test_network' --name test.DNS.name bash wget test.DN...
1

votes
0

answer
34

Views

Different behaviour when stopping container (docker stop vs drain)

I experience a strange behaviour with docker. For some reason a service needs two attempts to start on a different node when I use docker service update --availability drain myHost on the host where this service was running before. When doing the same with docker stop containerId the service will st...
Yannic Klem
1

votes
0

answer
244

Views

Docker Swarm - some task containers are not being updated on deploy

I'm using Docker 18.05 with Docker Swarm to deploy a service with several tasks with a rolling update. Occasionally, 1 out of 3 tasks is not being updated with the latest version. After reading on this issue, I added tagging to the image in the docker compose file to ensure it pulls the latest image...
Rani
1

votes
0

answer
116

Views

Why is Prometheus only showing my manager node for docker?

I'm new to using Prometheus and I would really appreciate some help. I have a swarm of machines with 1 manager and 7 workers. The manager is on a digital ocean instance and the workers are physical machines on my local network. The problem is when I go to the Grafana dashboard only 1 node is being d...
user3567080
1

votes
0

answer
159

Views

How can I access to host local network from docker swarm in overlay mode?

I have a swarm with several docker containers, and an overlay network for communication between this containers. From one mf my containers, I need to call an external web service (in the host local network). I can call this web service from my host without any problem. But in my docker images, I can...
Loic
1

votes
0

answer
199

Views

Using Docker to set up an Elasticsearch cluster across multiple machines

I have currently tried to use docker-compose to spin up multiple elasticsearch containers but these are all deployed on my local machine. What would be the process for deploying multiple containers to several different machines using Docker? I know that docker swarm exists but I am not sure how to...
A P
1

votes
0

answer
966

Views

Docker secrets in docker-compose.yml

I have encountered problems with usage of docker secrets in docker-compose. Here is my yml: version: '3.6' secrets: aws_bucket_name: file: ./secrets/aws_bucket_name.txt services: my-service-name: image: my-service-name secrets: - aws_bucket_name build: context: . dockerfile: Dockerfile-dev volumes:...
Anton Smatanik
1

votes
0

answer
457

Views

Docker swarm can't resolve service name on other nodes

I had a small working docker swarm on google cloud platform. There are just two nodes, one with nginx and php, the other one with mysql. Right now it seems that from master node I can't connect to the mysql on the worker node. SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name...
user1763784
1

votes
1

answer
620

Views

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 service docker restart and it worked. However, there...

View additional questions