Tag: docker swarm

Identify overlay networks from the inside of the container

I have a process inside my docker container that is attached to multiple overlay networks and it must only bind to a specific overlay network interface (it knows its name through passed env vars) so that the rest of the containers in that overlay network would be able to talk to it. How can a […]

Docker-swarm error: read-only file system

I have been trying to set up swarm using docker-machine. I created a swarm of three VMs using virtualbox driver (swarm-master, swarm-node-00, swarm-node-01) using docker-hub token. Here is the info: [peeyush@localhost ~]$ $(docker-machine_linux-amd64 env –swarm swarm-master) [peeyush@localhost ~]$ docker info Containers: 6 Nodes: 3 swarm-master: 192.168.99.103:2376 └ Containers: 2 └ Reserved CPUs: 0 / 4 […]

How to launch a docker bundle with specified exposed ports?

If you are not familiar with docker bundles please read this. So I have tried to create a simple docker bundle from the following docker-compose.yml version: “2” services: web: image: cohenaj194/apache-simple ports: – 32701:80 nginx: image: nginx ports: – 32700:80 But the ports of the docker services this bundle created were not exposed and I […]

DNS Swarm agent not working on Azure

1- I created a new containerservice in azure. 2 – The creation was done following the portal step by step. 3 – I have not changed any configuration of any service, VM, balancing, master and agent. 4 – I can connect with PuTTY normally. 5 – I can open a tunnel by redirecting port 80 […]

Swarm container not getting started with created overlay network

We are trying to run swarm cluster on Docker 1.12. We are using VMs (Kernel Version: 3.13.0-100-generic Operating System: Ubuntu 14.04.5 LTS). Swarm was created successfully and we have joined a worker to this cluster. Now have created a network docker network create –driver overlay –subnet 10.130.0.0/16 customnw. The network get created sucessfully. Than we […]

Docker container access to swarm IPs

When running docker containers a swarm cluster do the containers have access to all the IPs of the cluster nodes via ENV variables or otherwise? I want to run an Elasticsearch instance on each node in my swarm the cluster. And they will discovery each other in unicast mode. Therefore each Elasticsearch instanc needs to […]

docker swarm create fails when tar can't find container file system

I’m running docker on a CentOS VM. Some version information: Linux cmodqa.lab.c-cor.com 3.10.0-229.4.2.el7.x86_64 #1 SMP Wed May 13 10:06:09 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux [root@xxx ~]# docker version Client version: 1.6.0 Client API version: 1.18 Go version (client): go1.4.2 Git commit (client): 8aae715/1.6.0 OS/Arch (client): linux/amd64 Server version: 1.6.0 Server API version: 1.18 Go […]

How to run containers in a swarm with filters using the Docker Remote API?

I want to run containers in my swarm with some filters using the Docker Remote API. E.g. I would like to use the REST API to do the same thing as this command: $ docker run -d –name logger -e affinity:container==front logger I know that the Swarm API is mostly compatible with the Docker Remote […]

What are the possibilities to debug a docker swarm?

I’m trying to create a container’s cluster using the docker swarm engine and following the official documentation: https://docs.docker.com/swarm/install-w-machine/. But unfortunately till now without success. On the documentation’s step to get the information about the swarm, only two containers are displayed (the ones from the swarm-master) instead of four. Here are the output I’m getting: $ […]

Need Explanation for the docker documentation on the swarm

I finished this documentation: https://docs.docker.com/swarm/install-w-machine/ It works fine. Now I tried to setup this EC2 instances by following this documentation: https://docs.docker.com/swarm/install-manual/ I am in Step 4. Set up a discovery backend I cannot understand the steps what I need to do further. I created 5 nodes in EC2: manager0, manager1, consul0, node0, node1. Now I […]

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