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

Cron Docker container not rebooting properly after unattended upgrades

Disclaimer, I have very little experience with Docker and servers in general. Most of the server-related things I do by following manuals created by former employees and a lot of Googling. We are using Docker swarm to manage updates to our Docker…
0
votes
1 answer

Get real requester IP in containerized NGINX reverse proxy

I have Docker Swarm stack with nginx as reverse proxy set up on OVH vps. I was trying to make use of allow/deny directives in location, but if I set deny all; it wouldn't work even for the ip's added with allow directive. After looking at access…
Pepsko
  • 21
  • 1
  • 2
0
votes
0 answers

Does "docker swarm leave" sends any kind of SIGNAL to the containers to give them a chance to gracefully shutdown?

I wasn´t able to find an answer to this and simple tests let me think, that docker is killing the containers without any SIGNAL. If this is really the case: How can I remove a node from the swarm gracefully without killing any containers that are…
michabbb
  • 131
  • 5
0
votes
0 answers

How to switch from docker swarm to kubernetes?

We have a docker swarm setup on four aws ec2 ubuntu machines. Two of them acting as managers. Now, instead of managing ourselves, we want to port to a managed service like aks/eks for kubernetes. I am not able to find any so far, so thought to…
uday kiran
  • 56
  • 5
0
votes
1 answer

HAProxy - Cannot chroot /var/lib/haproxy

I am trying to run haproxy in docker by following this article from the haproxy blog. https://www.haproxy.com/blog/haproxy-on-docker-swarm-load-balancing-and-dns-service-discovery/ I am getting the following error Cannot chroot…
CodeWeed
  • 101
  • 2
0
votes
1 answer

Docker node gets down after promoted from worker to manager

Docker swarm consists of 3 nodes: ID HOSTNAME STATUS AVAILABILITY MANAGER STATUS ENGINE VERSION ec9gxe01ofk38xb3o6hg8xccv docker-worker01 Ready Active …
Mr.Holub
  • 16
  • 1
0
votes
1 answer

PHP-FPM Docker container behaves differently regarding engine (docker-compose vs Swarm)

one PHP-FPM container (7.2), member of classical LAPP stack, correctly exposes port 9000 when launched with docker-compose but nothing when started by Docker Swarm. Should I mention that container is running (see output below) and I can launch a TTY…
nbonniot
  • 127
  • 7
0
votes
0 answers

How to fix a node in docker swarm?

I have a 4 node cluster in AWS, which 2 nodes are continuosly getting diconnected and sometimes rebooting works and sometimes need to reboot all the nodes in the cluster to get all back. [ec2-user@ip-172-31-7-235 ~]$ docker node ls ID …
uday
  • 352
  • 10
  • 30
0
votes
1 answer

Fail2ban on CentOS 7 with Docker-powered Traefik ban OK without iptables rule addition

I set up a Traefik instance run by Docker engine in Swarm mode with a "classical" configuration (see below, for sake of brevity I only put relevant [to me] parts. Feel free to ask more details if you need so). Fail2Ban is installed, as well as…
nbonniot
  • 127
  • 7
0
votes
1 answer

Graylog does not receive logs from Docker Swarm Services

I'm new with Graylog and I'm trying to use Graylog on a Docker Container, but the logs from the others containers does not arrive on Graylog and nothing is displayed on the Graylog web interface SEARCH. What should I do to logs of the containers…
0
votes
0 answers

One shot docker service

I have some containers that need to be started as services in a swarm cluster. The point is that the container will run a service at a certain time and after that it must be removed. How do I remove a service after the container runs what it needs…
0
votes
1 answer

How to setup Docker Swarm + Traefik 2.4 + domain-based routing on bare metal with CLI?

I would like to scale my little Docker webapp and make it highly available. I have been using Docker for many years and K8s seems overly complicated, therefore I am looking into Docker Swarm. Colorful IT architecture diagram The idea is simple: have…
bluepuma77
  • 1
  • 1
  • 2
0
votes
1 answer

Run a remote playbook

I have a situation where I have the AWX repo cloned into the /tmp/ folder on a remote docker swarm container and I am already using ansible playbooks. What I am trying to do is run the playbook I have already and then run the playbook in the AWX…
0
votes
1 answer

Merge few files in Ansible lookup file

So far I use simple code to deploy Docker stacks. I don't want to use community.general.docker_stack module, due to its ridiculous requirement: the stack definition (docker compose yml file) needs to be placed at the remote node, while I want to…
0
votes
0 answers

docker swarm mysql database not connecting, how to fix that?

I am using below command to create a docker swarm service. docker service create --name mysql_2 -p target=3306 -e MYSQL_DATABASE=mydb -e MYSQL_ROOT_PASSWORD=my-secret-pw -d mysql:latest After service creation, when I try to connect mysql database…
uday kiran
  • 33
  • 6