vault.json
: https://pastebin.com/wKzERqCpvault.sh
: https://pastebin.com/iYJUPe38
network inspect
output through a JSON diff tool the only differences are entirely expected
docker swarm init --advertise-addr=192.168.56.102
. However, when I try to join the swarm on my other nodes I get an error claiming Error response from daemon: rpc error: code = Unavailable desc = all SubConns are in TransientFailure, latest connection error: connection error: desc = "transport: Error while dialing dial tcp 192.168.56.102:2377: connect: no route to host"
, which is funny because I can ping and ssh to the supposedly unavailable destination with no issues. Anyone got any ideas?
Hi I trying to implement sticky session on dockers-swarm with traefik, but I could not achieve session persistence over two replicas on same machine.
In my docker-compose.yml, I have added labels for traefik and added the loadbalancer as well. Am I missing anything?
Or is there a better way to maintain session persistence?
I have a PHP backend and taking about maintaining same PHP session variables across replicas
{{.Service.Name}}
the service gets created, however the hostname shows literally as {{.Node.Hostname}}-{{.Node.ID}}
Hello All,
I have a docker swarm on runningon two different hosts ,Leader in Ubuntu and worker in Windows
on docker network ls i can see the network getting listed
C:\Users\Faizal>docker network ls
NETWORK ID NAME DRIVER SCOPE
18887aba757f bridge bridge local
00df062ded65 docker_default bridge local
1e42220f0b70 docker_gwbridge bridge local
90c53993c421 host host local
udozhr1kppne ingress overlay swarm
9e08a2fd21fe none null local
rtcs20mrhmnt overnet overlay swarm
Docker inspect gives the service myserice
docker network inspect overnet
[
{
"Name": "overnet",
"Id": "rtcs20mrhmntlmwh02upgk5f2",
"Created": "2019-01-02T06:41:23.5165731Z",
"Scope": "swarm",
"Driver": "overlay",
"EnableIPv6": false,
"IPAM": {
"Driver": "default",
"Options": null,
"Config": [
{
"Subnet": "10.0.0.0/24",
"Gateway": "10.0.0.1"
}
]
},
"Internal": false,
"Attachable": false,
"Ingress": false,
"ConfigFrom": {
"Network": ""
},
"ConfigOnly": false,
"Containers": {
"1e9a962147b2443d41537d98fd91a020d3aa090bf1ea2bacafb7ceacce9df99c": {
"Name": "myservice.2.ydxmr7tb8jlzu4g6jwvnc7ryr",
"EndpointID": "0bd35007868ff220064ddf3fa19f9e36708853b45bc6234635b3f11b45f9660e",
"MacAddress": "02:42:0a:00:00:24",
"IPv4Address": "10.0.0.36/24",
"IPv6Address": ""
},
"lb-overnet": {
"Name": "overnet-endpoint",
"EndpointID": "7ed5fc49f3846b6b80a30a48b43170f7225b2a2210e99ee2219ac14fed6a6182",
"MacAddress": "02:42:0a:00:00:25",
"IPv4Address": "10.0.0.37/24",
"IPv6Address": ""
}
},
"Options": {
"com.docker.network.driver.overlay.vxlanid_list": "4097"
},
"Labels": {},
"Peers": [
{
"Name": "eb0e60ee3298",
"IP": "192.168.0.8"
},
{
"Name": "8b49e41d1df7",
"IP": "192.168.0.7"
}
]
}
]
now i enter into conatiner and try to ping another conatiner on ubuntu ,but i dont get inof ,all the data is lost.
ping 10.0.0.36
PING 10.0.0.36 (10.0.0.36): 56 data bytes
64 bytes from 10.0.0.36: seq=0 ttl=64 time=0.068 ms
64 bytes from 10.0.0.36: seq=1 ttl=64 time=0.176 ms
64 bytes from 10.0.0.36: seq=2 ttl=64 time=0.185 ms
64 bytes from 10.0.0.36: seq=3 ttl=64 time=0.176 ms
^C
--- 10.0.0.36 ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 0.068/0.151/0.185 ms
/ # ping 10.0.0.35
PING 10.0.0.35 (10.0.0.35): 56 data bytes
^C
--- 10.0.0.35 ping statistics ---
32 packets transmitted, 0 packets received, 100% packet loss
@vishnuavenudev
RUN ln -sf /dev/stdout /var/log/myapp/services-info.log \
&& ln -sf /dev/stderr /var/log/myapp/services-error.log
i added this in docker
i am running it on aws ecs
i am getting the logs on cloudwatch but cannot tail inside container
tailf /var/log/myapp/services-info.log
tailf /dev/stdout
both of them not running
not showing any logs
base image for this docker is ubuntu