我正在使用docker-compose up
命令在AWS AMI RHEL 7.6实例上启动几个容器。我观察到,无论在哪个容器中都有大容量安装,它们在启动后都会立即以状态Exiting(1)
退出,并且剩余的容器仍处于运行状态。我尝试使用tty: true
和stdin_open: true
,但没有帮助。令人惊讶的是,该设置在另一个实例中运行良好,基本上我正在尝试在这个新实例中进行复制。
停止的容器是Fabric v1.2对等方,CA和订购者。
Docker-compose.yml文件位于我使用docker-compose up
命令的根文件夹中
version: '2.1'
networks:
gcsbc:
name: gcsbc
services:
ca.org1.example.com:
extends:
file: fabric/docker-compose.yml
service: ca.org1.example.com
fabric / docker-compose.yml
version: '2.1'
networks:
gcsbc:
services:
ca.org1.example.com:
image: hyperledger/fabric-ca
environment:
- FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server
- FABRIC_CA_SERVER_CA_NAME=ca-org1
- FABRIC_CA_SERVER_CA_CERTFILE=/etc/hyperledger/fabric-ca-server-config/ca.org1.example.com-cert.pem
- FABRIC_CA_SERVER_TLS_ENABLED=true
- FABRIC_CA_SERVER_TLS_CERTFILE=/etc/hyperledger/fabric-ca-server-config/ca.org1.example.com-cert.pem
ports:
- '7054:7054'
command: sh -c 'fabric-ca-server start -b admin:adminpw -d'
volumes:
- ./artifacts/channel/crypto-config/peerOrganizations/org1.example.com/ca/:/etc/hyperledger/fabric-ca-server-config
container_name: ca_peerorg1
networks:
- gcsbc
hostname: ca.org1.example.com