Repository navigation
Compose warns of deprecated volume external name #9029
Copy link
Copy link
Closed
Description
Description
Compose V2 warns that "volume.external.name is deprecated in favor of volume.name" even though this exact syntax is described in the compose specification:
volumes:
db-data:
external:
name: actual-name-of-volume
Steps to reproduce the issue:
- Compose volumes section:
volumes:
a_volume:
external:
name: other_name
- Run
docker compose up -d
Describe the results you received:
WARN[0000] volume a_volume: volume.external.name is deprecated in favor of volume.name
Describe the results you expected:
No warning, as this is the exact syntax provided in compose specification.
Additional information you deem important (e.g. issue happens only occasionally):
Output of docker compose version:
Docker Compose version v2.2.1
Output of docker info:
Client:
Context: default
Debug Mode: false
Plugins:
buildx: Docker Buildx (Docker Inc., v0.7.1)
compose: Docker Compose (Docker Inc., v2.2.1)
scan: Docker Scan (Docker Inc., 0.9.0)
Server:
Containers: 27
Running: 2
Paused: 0
Stopped: 25
Images: 141
Server Version: 20.10.11
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
userxattr: false
Logging Driver: json-file
Cgroup Driver: cgroupfs
Cgroup Version: 1
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: io.containerd.runtime.v1.linux runc io.containerd.runc.v2
Default Runtime: runc
Init Binary: docker-init
containerd version: 7b11cfaabd73bb80907dd23182b9347b4245eb5d
runc version: v1.0.2-0-g52b36a2
init version: de40ad0
Security Options:
seccomp
Profile: default
Kernel Version: 5.10.60.1-microsoft-standard-WSL2
Operating System: Docker Desktop
OSType: linux
Architecture: x86_64
CPUs: 8
Total Memory: 12.39GiB
Name: docker-desktop
ID: BFI6:NAEC:P5LE:2TAP:QFOY:XYAI:SM7K:3CSB:B724:62MA:HWNG:5V7M
Docker Root Dir: /var/lib/docker
Debug Mode: false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
WARNING: No blkio throttle.read_bps_device support
WARNING: No blkio throttle.write_bps_device support
WARNING: No blkio throttle.read_iops_device support
WARNING: No blkio throttle.write_iops_device support
Additional environment details:
Docker Desktop 4.3.0 (71786) on Windows 10 with WSL2 backend.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Activity
stale commentedon Jun 12, 2022
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
sepe81 commentedon Jun 14, 2022
I got the same warning with v2.6.0 and found docker/docs#14851 for networks. I guess it's a similar change for volumes.
The missing link should be https://docs.docker.com/compose/compose-file/compose-file-v2/#external
There you find the deprecation note.
stale commentedon Jun 14, 2022
This issue has been automatically marked as not stale anymore due to the recent activity.