If I have a compose file with the following volumes declared
volumes:
my-volume:
external:
name: my-volume-name
and if no volume named my-volume-name exists,
then deploying the stack using docker stack deploy will create the volume.
Expected behavior is a failure of the service tasks with a message like volume 'my-volume-name' declared as external but not found. Create external volumes using 'docker volume create'.
I suspect this is a regression.
docker info:
Containers: 45
Running: 15
Paused: 0
Stopped: 30
Images: 760
Server Version: 1.13.0-rc5
Storage Driver: aufs
Root Dir: /var/lib/docker/aufs
Backing Filesystem: extfs
Dirs: 686
Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Swarm: active
NodeID: e1n2zuijycthql63w6h2n4vsz
Is Manager: true
ClusterID: 1szzbo8wm61n365hoy41ihebj
Managers: 1
Nodes: 1
Orchestration:
Task History Retention Limit: 5
Raft:
Snapshot Interval: 10000
Number of Old Snapshots to Retain: 0
Heartbeat Tick: 1
Election Tick: 3
Dispatcher:
Heartbeat Period: 5 seconds
CA Configuration:
Expiry Duration: 3 months
Node Address: 91.121.79.188
Manager Addresses:
91.121.79.188:2377
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 03e5862ec0d8d3b3f750e19fca3ee367e13c090e
runc version: 51371867a01c467f08af739783b8beafc154c4d7
init version: 949e6fa
Security Options:
apparmor
seccomp
Profile: default
Kernel Version: 4.8.0-32-generic
Operating System: Ubuntu 16.10
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 15.58 GiB
Name: cghislaiA
ID: DFG6:IV26:QJCR:GW5X:OWRX:IOJ3:IMVJ:BPC2:GZ4Y:MUVX:TLHW:ADBC
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
WARNING: No swap limit support
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
If I have a compose file with the following volumes declared
and if no volume named
my-volume-nameexists,then deploying the stack using
docker stack deploywill create the volume.Expected behavior is a failure of the service tasks with a message like
volume 'my-volume-name' declared as external but not found. Create external volumes using 'docker volume create'.I suspect this is a regression.
docker info: