Tag: docker swarm

Using dockers remote api in docker swarm

I have a microservice called “Creator”. What that service does is use the docker remote api to create a new container with the microservice (“Calculator”) if needed. Now I’m trying to get this working in Docker Swarm, and my question is about how I should be able to find the IP /DNS for the docker […]

Docker Stack deployment app does not work

I followed the tutorial at https://docs.docker.com/engine/getstarted-voting-app/ and went until the end of deploying the stack to swarm nodes. All looks fine however, when i open the :5000 i get can’t connect error in the browser. How do i debug it ? doing docker node ls prints VSKUMAR-mac:docker-stack vskumar$ docker-machine ls NAME ACTIVE DRIVER STATE URL […]

How many docker swarm networks can I create

how many subnets can I create via the docker swarm overlay? i.e. if I was running a paas setup and I needed each app to be isolated in its own network, is there a limit to the number of networks that can be created? Also is there a way I can set the prefix for […]

Nginx reverse proxy falling after update Docker to 1.13

i’m having a connection timed out issue with nginx reverse proxy since yesterday when we updated docker to version 1.13 here is the error log from Nginx upstream timed out (110: Connection timed out) while connecting to upstream, client:, server:, request: “GET /Microservice/microservices HTTP/1.1”, upstream: “”, host: “” The nginx is a service […]

Docker swarm container info about parent service

Is there anyway to know from a container is a swarm service, information about the service. Namely, which number it’s in the the replication set? ifconfig gives me inetaddr which is incremented but by host. Reason. I’d like the first spun service container to be the leader and have information on the slaves.

Docker inspect format to retreive IP of a particular network

I use swarm mode and I would like to get the VirtualIP of a service on a particular network: 6yhxlmtq69zaojpy57xdvaeiw The result should be: [root@managers vagrant]# docker service inspect tqy1id7zsg9s [ { “ID”: “tqy1id7zsg9s7rftu8uu51g2l”, “Version”: { “Index”: 72 }, “CreatedAt”: “2017-01-19T07:56:13.30985464Z”, “UpdatedAt”: “2017-01-19T07:56:13.312923681Z”, “Spec”: { “Name”: “spark-master”, “TaskTemplate”: { “ContainerSpec”: { “Image”: “fsoppelsa/spark-master:latest@sha256:7aee2f405b 546584b75bc1ec6ec3bfb5744de52788058c3455a1b43817d6af84”, […]

docker swarm with Centos servers

I wanted to created a Docker Swarm cluster in which the docker machines are running CentOS or any other OS. How do I do that ? I see documentation says: docker-machine create –driver virtualbox default But it creates servers with different OS other than Centos. How do i create a swarm cluster in which each […]

How to create an serverless infrastructure with docker?

My questions is more like, philosophical stuff. I’d like to understand how a docker infrastructure works in an production environment as a serverless. Here is my idea: I have a bunch of nodes, working with a docker swarm structure. So, everytime, I’m pulling out containers and adding new ones. So, how can I configure my […]

How can I identify why my replica's are not starting in the swarm?

I have used the following docker swarm command within my manager node to deploy my application. $ docker stack deploy –compose-file docker-stack.yml sb Here is the docker-stack.yml file. version: “3” services: db: image: postgres:9.4 volumes: – db-data:/var/lib/postgresql/data networks: – backend deploy: placement: constraints: [node.role == manager] sample_blog: image: quay.io/repository/copley/sample_blog ports: – 3000:80 networks: – frontend […]

Docker Swarm, Compose V3 and exposed IP address

How can I define an IP for a server to work with in Swarm mode. How to set the IP and PORT for accesing th service from outside? Using docker 1.13.0 and docker-compose 1.10.0 regards

Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.