Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no networks on export #17

Open
scher200 opened this issue Dec 12, 2017 · 2 comments
Open

no networks on export #17

scher200 opened this issue Dec 12, 2017 · 2 comments

Comments

@scher200
Copy link

scher200 commented Dec 12, 2017

docker-compose.yml

version: '3.2'

networks:
  lb_default:
    external: true

services:
  lb:
    image: traefik:1.3
    networks:
      lb_default:
    command: -c --docker=true
      --web=true
      --debug=true
      --docker.swarmmode
      --docker.watch
      --docker.domain=mydomain.com
      --docker.exposedbydefault=false
      --accesslogsfile=/dev/stdout 
      --logLevel=ERROR
      --graceTimeOut=600 
      --maxIdleConnsPerHost=4000
      --acme=true
      [email protected]
      --acme.entryPoint=https
      --entryPoints='Name:http Address::80'
      --entryPoints='Name:https Address::443 TLS'
      --acme.ondemand=true
      --acme.storage=/encrypt/acme.json
      --defaultEntryPoints=https,http
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - ./acme/:/encrypt/
      - /dev/null:/traefik.toml
    ports:
      - "80:80"
      - "443:443"
      - "5344:8080"
    deploy:
      placement:
        constraints:
          - node.arc == x64
          - node.role == manager

as you can see whaleprint 0.3 export does not export any networks
traefik.dab

{
  "Version": "0.1",
  "Services": {
    "lb": {
      "Image": "traefik:1.3@sha256:90697fb79a104520f350a3a1db6402584f473301ab6d1a71d264758b65fa232e",
      "Args": [
        "-c",
        "--docker=true",
        "--web=true",
        "--debug=true",
        "--docker.swarmmode",
        "--docker.watch",
        "--docker.domain=mydomain.com",
        "--docker.exposedbydefault=false",
        "--accesslogsfile=/dev/stdout",
        "--logLevel=ERROR",
        "--graceTimeOut=600",
        "--maxIdleConnsPerHost=4000",
        "--acme=true",
        "--acme.email='[email protected]",
        "--acme.entryPoint=https",
        "--entryPoints=Name:http Address::80",
        "--entryPoints=Name:https Address::443 TLS",
        "--acme.ondemand=true",
        "--acme.storage=/encrypt/acme.json",
        "--defaultEntryPoints=https,http"
      ],
      "Labels": {
        "com.docker.stack.image": "traefik:1.3",
        "com.docker.stack.namespace": "traefik"
      },
      "ServiceLabels": {
        "com.docker.stack.namespace": "traefik"
      },
      "Ports": [
        {
          "Protocol": "tcp",
          "Port": 80,
          "PublishedPort": 80
        },
        {
          "Protocol": "tcp",
          "Port": 443,
          "PublishedPort": 443
        },
        {
          "Protocol": "tcp",
          "Port": 8080,
          "PublishedPort": 5344
        }
      ],
      "WorkingDir": "",
      "User": "",
      "Replicas": 1
    }
  }
}

docker version

Client:
 Version:      17.10.0-ce
 API version:  1.33
 Go version:   go1.9.1
 Git commit:   f4ffd2511c
 Built:        Wed Oct 18 23:08:56 2017
 OS/Arch:      linux/amd64

Server:
 Version:      17.10.0-ce
 API version:  1.33 (minimum version 1.12)
 Go version:   go1.9.1
 Git commit:   f4ffd2511c
 Built:        Wed Oct 18 23:09:11 2017
 OS/Arch:      linux/amd64
 Experimental: false/true
@scher200
Copy link
Author

scher200 commented Dec 13, 2017

Noticed that all restored services names get prefixed with their networks (last part), in this case lb_ :

ID                  NAME                  MODE                REPLICAS            IMAGE                    PORTS
5nqjy....        lb_traefik_lb             replicated             1/1               treaefik:1.3              .....

@scher200
Copy link
Author

scher200 commented Dec 13, 2017

Or when not deployed as stack but as service with services_ :

ID                  NAME                  MODE                REPLICAS            IMAGE                    PORTS
245srt23adv1     services_traefik_lb    replicated             1/1               treaefik:1.3              .....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant