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

docker stack deployment failing

I'm trying to learn Docker, I'm using it with a 5 machine (1 leader, 4 workers) on http://play-with-docker.com and following a Udemy tutorial. I the tutorial about Docker stack, the instructor gives an example of this code: version: "3" services: …
0
votes
0 answers

Access Localhost from within container with Docker Stack

I have a VM running in Azure, that I'm trying to connect to a port on the VM from within a container. just running the container, I can do something like docker run -it --net="host" managed-service-identity this works as expected. How can I…
Michael B
  • 11,887
  • 6
  • 38
  • 74
0
votes
2 answers

Initiate MongoDB replica set in docker swarm

I have created two config servers with replica set name rs0 in docker-compose.yml file deployed as sudo docker stack deploy --with-registry-auth --compose-file docker-compose.yml test. version: "3.3" services: cfg1-r1: image: mongo:3.2 …
user8353052
0
votes
2 answers

docker stack deploy from compose file - all services one node?

I have a docker-compose file with 10 services (containers). I have it configured one instance of each server. When I execute the stack deploy, all 10 services go to one node (manager). I trust that adding a second instance of a service will…
ed4becky
  • 1,488
  • 1
  • 17
  • 54
0
votes
2 answers

Docker Swarm - Get Service to Stay Running Forever

I'm creating a docker service that executes a command to start a program, but the problem is the service keeps terminating, because once the command to start completes, docker thinks it's done and terminates and starts it again. I want to change…
user1072692
  • 687
  • 1
  • 8
  • 19
0
votes
1 answer

can I use ansible to start docker swarm services without compose?

how can I ssh into a service created by docker swarm? I have created a service using docker stack and the yaml file looks like this: version: '3' services: app: image: "myimage1" expose: - "8080" and I validated that the service is…
tkyass
  • 2,968
  • 8
  • 38
  • 57
-1
votes
0 answers

Solr does not retain collection on restart of docker stack deployment

I have setup docker based solr cluster based on below file version: '3' services: zoo1: image: zookeeper:3.4 volumes: - './zoo1_data:/data' environment: ZOO_MY_ID: 1 ZOO_PORT: 2181 …
Kundan Atre
  • 3,853
  • 5
  • 26
  • 39
1 2 3
12
13