docker service create --name helloworld --replicas 1 -p 8888:80 nginx
docker service ls
ID NAME REPLICAS IMAGE COMMAND
evbp2spkjn50 helloworld 1/1 nginx
curl 172.28.100.101:8888
<!DOCTYPE html>
<html>
<head>
<title>Welcome to nginx!</title>
....
curl 172.28.100.102:8888
curl: (7) Failed to connect to 172.28.100.102 port 8888: Connection refused
docker service scale helloworld=3 helloworld scaled to 3
curl 172.28.100.102:8888
<!DOCTYPE html>
<html>
<head>
<title>Welcome to nginx!</title>
....
docker --version
Docker version 1.12.1, build 23cf638
--
You received this message because you are subscribed to the Google Groups "docker-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to docker-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to docker-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "docker-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to docker-dev+unsubscribe@googlegroups.com.
I have confirmed that the Routing Mesh in Swarm Mode Ubuntu 16.04 and Docker Engine 1.12.3 works perfectly.
Unfortunately, I couldn't easily use docker-machine to upgrade the machines. (I have physical machines spread out across the city).
For each machine I couldn't upgrade with "docker machine upgrade <nodeX>", i ran the following:
$ docker-machine ssh <nodeX>
$ curl -sSL https://get.docker.com/ | docker_version=1.12.3 sh
Running "docker-machine ls" revealed that the machine does reflect it's definitely running 1.12.3 :) (finally)
The other issue I had was that Ubuntu refused to upgrade with "sudo apt-get upgrade", but was able to after running "sudo do-release-upgrade".
I hope this helps others!!!
After months of hair pulling, I now have Swarm Mode + Routing Mesh. Now to figure out converting my existing docker-compose stuff to "service" ready methods. The docker bundle thing really doesn't cut it yet, because i do health checking against Apache weberserver by adding a hostname "healthcheck" to the /etc/hosts in my container so that I can configure apache httpd.conf to not write to logs for those requests. To add a host, i must do so at the creation of a running container like so:
docker service create --name webtest1 --publish 80:80 --add-host='healthcheck:127.0.0.1' commnetivity/webserver
Except that "docker service" does not currently support the "--add-host" option like I need. I don't know of another way to write to hosts file in my image yet.
But at least I can say a milestone has been reached today!!! I have Docker "native swarm" and routing mesh working. FINALLY.
To unsubscribe from this group and stop receiving emails from it, send an email to docker-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "docker-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to docker-dev+...@googlegroups.com.