Closed CodeZHXS closed 10 months ago
The same happens for me, as I already described in the following issue at the Zabbix Docker repo: https://github.com/zabbix/zabbix-docker/issues/1121 With 2.23.3 the same compose files run without error.
I can reproduce this issue, will investigate this today and include a test-case with your example to ensure we don't get such a regression in the future
Just ran into this issue. Just for completeness, a reduced test case:
File a:
name: tmp
services:
s0:
extends:
file: b
service: s-base
s1:
extends:
file: b
service: s-base
File b:
services:
s-base:
image: busybox
s-other:
extends: s-base
Then run:
$ docker run -v ".:/mnt:ro" --rm docker:24.0.7-cli docker compose -f /mnt/a config
Circular reference:
s1 in /mnt/a
extends s-other in /mnt/b
extends s0 in /mnt/a
extends s-other in /mnt/b
("extends s-other" is of course wrong; the entry isn't actually used by any service.)
Description
When I use Docker Compose standalone v2.24.0, I encountered a bug. If you follow the steps below, you should be able to reproduce it:
Steps To Reproduce
When I use Docker Compose standalone v2.24.0, I encountered a bug. If you follow the steps below, you should be able to reproduce it:
4-peers.yml
depends onpeer.yml
. Thepeer.yml
is:Depends on the hyperledger/fabric-peer image.
This utilized the pbft as consensus
See https://github.com/hyperledger/fabric/blob/master/docs/dev-setup/devnet-setup.md#using-consensus-plugin for more details.
version: '2'
services: vp: # vp node no needing membersrvc image: yeasy/hyperledger-fabric-peer:0.6-dp
image: yeasy/hyperledger-fabric-peer:0.6-dp
image: hyperledger/fabric-peer:x86_64-0.6.1-preview
image: ibmblockchain/fabric-peer:x86_64-0.6.1-preview
command: sh -c "sleep 5; peer node start" # peer node should have booting delay with CA
vp_sec: # vp node needing membersrvc suppot extends: service: vp environment:
version: '2'
services:
validating node as the root
vp0 will also be used for client interactive operations
If you want to run fabric command on the host, then map 7051:7051 to host
port, or use like
CORE_PEER_ADDRESS=172.17.0.2:7051
to specify peer addr.vp0: extends: file: peer.yml service: vp hostname: vp0 environment:
"7050:7050"
- "7051:7051"
validating node
vp1: extends: file: peer.yml service: vp hostname: vp1 environment:
vp0
validating node
vp2: extends: file: peer.yml service: vp hostname: vp2 environment:
vp0
validating node
vp3: extends: file: peer.yml service: vp hostname: vp3 environment:
networks:
default:
external:
name: fabric_pbft
Circular reference: vp0 in /root/pbft/4-peers.yml extends vp_sec in /root/pbft/peer.yml extends vp1 in /root/pbft/4-peers.yml extends vp_sec in /root/pbft/peer.yml
Docker Environment
Anything else?
No response