Tag: docker swarm

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 […]

Manage docker environment for Swarm running cluster with UPC

I have successfully running an UPC cluster with 3 ubuntu instances. I want to access the docker swarm environment, either docker-machine, or docker swarm manage, but it has not been possible. The closest I’ve been has been adding machines via docker-machine with generic driver, but when I try to add this using the –swarm parameter, […]

Running Docker Containers on Docker Swarm using Marathon?

I successfully integrated Docker Swarm with mesos and everything is going fine. But now I can start containers on Docker swarm only from the Command line like this: docker -H :4375 run -idt –cpu-shares 1 busybox. I am using Marathon for job scheduling in my cluster; is there any way to start a docker container […]

Docker swarm: How to specify cpu units provided by a node?

Where and how does docker swarm determine how many cpu units a node provides? An AWS t2.medium registers as 1 cpu even though it has 2 vCPU.

docker-compose with docker-swarm under docker-machine not mounting volumes

I have a working docker-compose example running a static html with nginx. The directory tree: ├── docker-compose.yml ├── nginx │   ├── app │   │   └── index.html │   └── Dockerfile The docker-compose.yml: nginx: build: ./nginx volumes: – ./nginx/app:/usr/share/nginx/html ports: – 8080:80 The nginx directory has the Dockerfile: FROM nginx Everything is working right. The problem is […]

Can I have one Docker Swarm Manager and different clusters?

I’ve just re-looked at Docker Swarm and I was wondering if it is possible to have one central Swarm manager and have it manage n Swarm agent clusters. Use Case: Consider a service (call it DockerServ) that allows people to build their own docker clusters. DockerServ will have a single Swarm Manager that can spin […]

Docker swarm nodes on private networks?

Is there theoretically anyway to connect nodes to a Docker swarm if they are on a private network and don’t have a public IP? The swarm host has a public IP, and the nodes can access it as well as a discovery service just fine, but they themselves are on private networks over which I […]

Checking reason behind node failure

I have docker swarm setup with nodes running node-1, node-2 and node-3. Due to some reason everyday one of my node is getting failed basically they exits. I ran docker logs <container id of swarm> but logs doesn’t contains any info related to node failure. So, is there any logs file where a log related […]

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