title: How can I add labels to "deploy" through docker service create
body: <p>I usually create my stacks using docker-compose, but when I have a single service, I prefer to create it directly as a service, without the underlying (and useless) stack.</p>
  
  <p>My problem is about the labels I need to set under the "deploy" sections, such as Traefik's ones :</p>
  
  <pre><code>deploy:
    replicas: 1
    labels:
     - "traefik.enable=true"
     - "traefik.gis.frontend.rule=PathPrefix:/sig"
     - "traefik.web.frontend.rule=PathPrefixStrip:/web"
     - "traefik.port=80"
     - "traefik.docker.network=traefik-network"
  </code></pre>
  
  <p>I don't know to set them through <em>docker service create</em> . This <strong>will not work</strong> , because Traefik requires that labels are set under deploy section:</p>
  
  <pre><code>docker service create \
      --name myService \
      --with-registry-auth \
      --network traefik-net \
      --label "traefik.enable=true" \
      --label "traefik.gis.frontend.rule=PathPrefix:/sig" \
      --label "traefik.web.frontend.rule=PathPrefixStrip:/web" \
      --label "traefik.port=80" \
      --label "traefik.docker.network=traefik-net" \
      dvgerdrh2:5050/georeso/someImage:1.3.2
  </code></pre>
  
  <p>Any idea on how to do this?</p>