Files
docker-cli/cli/command
Sebastiaan van Stijn a5113f4368 Add output for "secrets" and "configs" on stack deploy
When deploying a stack from a compose file, the output did not show
that a secret or config was created. This patch adds messages for these.

Create a configuration file and compose file:

    $ cat > config.yml <<EOF
    hello: world
    EOF

    $ cat > secret.txt <<EOF
    p@ssw0rd
    EOF

    $ cat > docker-compose.yml <<EOF
    version: "3.3"
    services:
       test:
         image: nginx:alpine
         configs:
         - source: myconfig
           target: /my-config.yml
         secrets:
         - source: mysecret
           target: /my-secret.txt
    configs:
      myconfig:
        file: ./config.yml
    secrets:
      mysecret:
        file: ./secret.txt
    EOF

Before this patch is applied:

    $ docker stack deploy -c docker-compose.yml example
    Creating network example_default
    Creating service example_test

After this patch is applied:

    $ docker stack deploy -c docker-compose.yml example
    Creating network example_default
    Creating secret example_mysecret
    Creating config example_myconfig
    Creating service example_test

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2017-10-03 15:13:10 +02:00
..
2017-04-17 17:40:59 -04:00
2017-09-25 13:18:13 +08:00
2017-09-29 17:45:31 +02:00
2017-09-01 19:41:06 -04:00
2017-08-29 16:30:37 +02:00
2017-09-29 17:45:31 +02:00
2017-08-23 01:37:54 +03:00
2017-09-25 13:18:13 +08:00
2017-09-26 12:33:35 -04:00
2017-09-22 17:59:46 -04:00
2017-09-01 19:41:06 -04:00
2017-05-03 18:41:19 -07:00
2017-09-01 19:41:06 -04:00
2017-05-03 18:41:19 -07:00
2017-05-08 15:57:50 -04:00