Hey Ian, thanks for the response. Wasn’t quite sure what you need, appreciate you clarifying.
The below describes a swarm setup with a manager running 18.06 on amazon linux 2, and two workers, one running 17.09/candidate and the other 18.06/stable, each on the latest version of ubuntu core.
Both workers connect to the swarm successfully (although some errors are present in syslog on 18.06/stable). After connecting the workers to swarm I deploy a stack on the manager, which is a simple nginx container from the official image. It deploys successfully to 17.09/candidate and fails on 18.06/stable.
On the 18.06 box:
> snap info core
ndsi.ubuntu.admin@nsentinel-dennis:~$ snap info core
name: core
summary: snapd runtime environment
publisher: Canonical✓
contact: snaps@canonical.com
license: unset
description: |
The core runtime environment for snapd
type: core
snap-id: 99T7MUlRhtI3U0QFgl5mXXESAiSwt776
tracking: stable
refresh-date: 14 days ago, at 15:22 UTC
channels:
stable: 16-2.35.2 (5548) 92MB -
candidate: 16-2.35.4 (5662) 92MB -
beta: 16-2.35.5 (5742) 92MB -
edge: 16-2.36~pre2+git959.a006992 (5731) 92MB -
installed: 16-2.35.2 (5548) 92MB core
and
> cat /var/snap/docker/current/config/daemon.json
{
"log-level": "debug",
"storage-driver": "overlay2",
"experimental": true,
"labels": ["hostname=myhost"],
"metrics-addr": "127.0.0.1:9323"
}
again on 18.06 core system:
> sudo snap start docker
syslog output (note the apparmour error): https://pastebin.ubuntu.com/p/spDMrqXY9R/
and on 18.06 core system (this is a necessary step for us because of our VPN setup):
> sudo docker network create \
--subnet 10.11.0.0/16 \
--opt com.docker.network.bridge.name=docker_gwbridge \
--opt com.docker.network.bridge.enable_icc=false \
--opt com.docker.network.bridge.enable_ip_masquerade=true \
docker_gwbridge
output: https://pastebin.ubuntu.com/p/tvK892k6sv/
and finally on 18.06 core system:
> sudo docker swarm join --token SWMTKN-redacted 10.100.0.1:2377
This node joined a swarm as a worker.
syslog output: https://pastebin.ubuntu.com/p/BHXytfQxfJ/
now on the swarm manager:
> docker stack deploy -c compose.nginx.yml
Contents of compose.nginx.yml:
version: "3.5"
services:
web:
image: nginx
ports:
- "8080:80"
environment:
- NGINX_HOST=foobar.com
- NGINX_PORT=80
command: [nginx, '-g', 'daemon off;']
on 17.09/candidate this deploys successfully!
on the 18.06/stable core machine, this is the syslog output:
https://pastebin.ubuntu.com/p/98MGPB2XfV/