Questions tagged [docker-stack]

A Docker stack is a set of related services which share volumes, networks and other dependencies, and can be orchestrated and scaled together. "docker stack" is the command from the Docker CLI. Stacks are configured with docker-compose files but a docker stack is complete independent of docker compose.

187 questions
0
votes
1 answer

Consul cluster stack configuration

I'm trying to build Consul cluster stack. My current configuration works fine, but after restart consul leader or full stack, cluster have a problem to vote for a new leader. After service restart, new task have a different ip address for same…
kris14an
  • 741
  • 7
  • 24
0
votes
1 answer

Docker containers on different stacks and networks communicationg each other

in my microservices architecture application I'd like to add Sleuth and Zipkin server (image from Docker Hub). Everything works fine locally - each microservice sends data to Zipkin server. The problem is more complicated when I deployed all…
Matley
  • 1,953
  • 4
  • 35
  • 73
0
votes
1 answer

Issue when a Python in a docker script connects to a SQL server in a stack

I have a stack in a swarm that works well on its own (at least I think it does...). It has a postgresql working on port 5432 and a web server on port 80. The web server can properly be accessed from the outside. For unit tests, I run only the…
0
votes
0 answers

Docker service replicas are unreachable

When i run below docker run --name foo -d -p 4000:1967 foo_service i am able to get response from my custom spring boot rest endpoint with curl or from any browser (localhost:4000), so it is obvious that  0.0.0.0:4000->1967/tcp port mapping…
cek
  • 167
  • 2
  • 16
0
votes
1 answer

Stop, upgrade, start all Docker Stack services together?

I'd like to stop all services in my docker-stack.yml file, update the file with new image version numbers, and then start all services. In order to upgrade them all together, so that they're always all of them at the very latest version. How do I do…
KajMagnus
  • 11,308
  • 15
  • 79
  • 127
0
votes
0 answers

Run symfony console on container start

I'm looking for a way, to execute symfonys console after a docker container is started, such as a database migration. I'm using a alpine php-fpm image, which has the following command at the end of its Dockerfile: CMD ["php-fpm"] When i try to…
user2534584
  • 483
  • 2
  • 8
  • 15
0
votes
1 answer

Failing to deploy a neo4j service as a docker stack using Docker Swarm via a docker-compose file

I am trying to configure a docker-compose.yml (I am aware version and services is not stated, they are apart of the file) file to run a neo4j instance. I am using docker swarm and deploying a stack i.e. used the following commands: docker swarm…
imbatman
  • 508
  • 5
  • 16
0
votes
0 answers

I tried to create a docker stack service in which there are multiple OS containers to up, but I'm not able to do this

I wanted to create an environment with multiple OSs for ansible lab. I chose docker to achieve that, I have written a docker-compose file to create multiple services using docker stack, as soon as I up the stack service all the container going down.…
0
votes
1 answer

Adding Docker commands into my Docker container

I have an issue that people have gone over, but not to this extent. I am making a Docker Swarm Health checker that regularly posts the health of the Docker nodes in my environment. I was running into the issue of how to run my Docker commands from…
0
votes
0 answers

docker stack deploy results in images with tag and varying image sizes

I understand from this that it is normal for images to get a tag in docker stack, but I do not understand why the image size varies from the tagged one. I couldn't find any information regarding this, so I resorted to posting a question on…
hwkd
  • 2,411
  • 3
  • 18
  • 27
0
votes
1 answer

People are connecting through my private network

For some reason with my Minecraft server running within a docker stack, it seems like people are going through a proxy. All IP's are internal (10.255.0.16). I can not seem to find the correct way to word this problem as for where I could do a manual…
Matt Smeets
  • 398
  • 4
  • 15
0
votes
0 answers

postgres container doesn't take password from environment variable

I'm using a postgres container as part of my microservice application. This is my dockerfile: FROM postgres:alpine COPY *.sh /docker-entrypoint-initdb.d/ I can build this image and publish it to my azure image registry. Also I can use this image…
MichaelS
  • 3,809
  • 2
  • 26
  • 33
0
votes
1 answer

Multiple docker .env for multiple servers(prod, dev) that containers use?

I really did not know how to word the title. In my system I have two instances: a Prod server a Dev server Dev used mostly for testing. In each case I have two versions of AMQP both having different hostnames. To avoid duplication or unnecessary…
0
votes
3 answers

Django Docker/Kubernetes Postgres data not appearing

I just tried switching from docker-compose to docker stacks/kubernetes. In compose I was able to specify where the postgres data volume was and the data persisted nicely. volumes: - ./postgres-data:/var/lib/postgresql/data I tried doing the same…
macintoshPrime
  • 244
  • 4
  • 12
0
votes
1 answer

Docker cloud services stop with script not found

I've been trying to deploy my app with docker cloud stack. I've tested this locally and I've also tested with docker-compose and they worked successfully. However, when I tried to deploy my docker container from my registry which is in my docker…
Hyo
  • 1
  • 2
  • 13
1 2 3
12
13