docker-swarm

Consul on Docker Swarm with Spring Boot clients

亡梦爱人 提交于 2020-01-05 11:26:28
问题 I'm having issues at the moment getting Consul running on Docker Swarm on Centos 7 (Docker version is 18.09.1, build 4c52b90), or more to the point, connecting to it from a worker node (either from a Consul agent or from a Spring Boot application trying to register with it). I currently have just one manager and one worker node. I have created an overlay network using the following command: docker network create -d overlay smartdeploy_evo On the manager I am deploying Consul using the

How to use a private registry with docker swarm and traefik in docker

天大地大妈咪最大 提交于 2020-01-03 04:59:06
问题 I am running a single node swarm, I am using traefik to manage all my external connections, and I want to run a registry such that I can connect to it at registry.myhost.com Now all the examples I can see suggest creating a registry as a normal container rather than a service, however when I do this, I do not have the ability to add it to my traefik network and thus enable it to be found externally. Do I need to create another internal network and connect both traefik and it to it, and if so,

Which Docker template values are available in docker stack deploy (compose)?

烂漫一生 提交于 2020-01-02 17:33:28
问题 Where can I find out which template values are available in my Docker UCP Swarm cluster? With template values I mean things like this https://docs.docker.com/engine/reference/commandline/service_create/#create-services-using-templates. I get the feeling that the tree I'm traversing looks a bit like docker inspect output, but a smaller set of it. Which keys? and which expressions can I use? Besides that, I often get errors like for {{.Engine.Labels}} <.Engine.Labels>: can't evaluate field

docker swarm init could not choose an IP address error

只谈情不闲聊 提交于 2020-01-01 04:03:09
问题 Experimenting with Docker Swarm with Docker Desktop for Mac . I tried this: docker-machine create -d virtualbox node-1 docker-machine create -d virtualbox node-2 docker-machine create -d virtualbox node-3 eval $(docker-machine env node-1) docker swarm init \ --secret my-secret \ --auto-accept worker \ --listen-addr $(docker-machine ip node-1):2377 The last command ( docker swarm init ) returns this error: Error response from daemon: could not choose an IP address to advertise since this

Docker Swarm - Network Overlay not connecting all containers

时间秒杀一切 提交于 2019-12-31 01:56:13
问题 I currently have 3 EC2 instances setup with Docker Swarm and Consul. I have 3 simple node apps spread across all 3 instances, and then nginx for routing on my swarm master. Using the guide for Overlay Networks, I've created a new overlay called mynet and have every container connected to this network. Using docker inspect I can confirm that each node container and the nginx container all are connected to mynet and have an IP. However, after sshing in to my nginx container, it's only able to

The relation between “docker/swarm” and “docker/swarmkit”

有些话、适合烂在心里 提交于 2019-12-28 13:53:08
问题 I am already familiar with docker/swarm, but find there occurs a "new" project: docker/swarmkit. But unfortunately, after reading the README, I still can't figure out what is the function of docker/swarmkit . Could anyoone help to elaborate the relations between docker/swarm and docker/swarmkit ? Why is docker/swarmkit born? 回答1: Docker Swarm is an older (2014) Docker native orchestration tool. It is standalone from the Docker engine and serves to connect Docker engines together to form a

The relation between “docker/swarm” and “docker/swarmkit”

一世执手 提交于 2019-12-28 13:53:07
问题 I am already familiar with docker/swarm, but find there occurs a "new" project: docker/swarmkit. But unfortunately, after reading the README, I still can't figure out what is the function of docker/swarmkit . Could anyoone help to elaborate the relations between docker/swarm and docker/swarmkit ? Why is docker/swarmkit born? 回答1: Docker Swarm is an older (2014) Docker native orchestration tool. It is standalone from the Docker engine and serves to connect Docker engines together to form a

Docker-machine swarm; how to open ports on VM

孤街浪徒 提交于 2019-12-25 09:14:43
问题 Trying out the new "swarm mode", following this. I have created 3 VM's via docker-machine create --driver virtual box <name> . But how do I open ports on them? 回答1: It might work with docker run -p <public-port>:<internal-port> <image> executed on the node. However, since you want to run a swarm, I guess it is better to follow a good guide to solve the routing mess here. If you follow the author's suggestions, you need to create a swarm (i.e. the docker host cluster) first by the docker

Hyperledger Composer - Docker Swarm

喜你入骨 提交于 2019-12-24 10:29:43
问题 I've been experimenting with Hyperledger Composer and with the official multi org tutorial. I was successful in modifying the given demo, adding a third organisation and finally installing my own bna. The next step was to fully understand how to deploy the Fabric network and Composer on multiple physical machines. And I went through all the available info about deploying such a process but without much luck. Let suppose: PC1: 1 Orderer, 1 Organisation, One cli container; PC2: 1 Organisation;

Unable to reach web server in Docker swarm from the host

无人久伴 提交于 2019-12-24 10:18:36
问题 I'm starting out using Docker on macOS, and get stuck when trying to complete part 4 of the Get Started guide. I have created two extra virtual machines ( myvm1 and myvm2 ), set myvm1 as swarm manager, and myvm2 as a worker. I have then deployed a stack with 5 Flask web servers using the docker-compose.yml from part 3 of the tutorial. The processes seem to start fine, and are distributed between the two machines, but I am not able to reach them from the host using a browser. How should I