./network.sh 未在 Hyperledger Fabric 2.5.9 二进制版本中运行 docker 容器

问题描述 投票:0回答:1
fabric-samples/test-network$ ./network.sh up
Using docker and docker compose
Starting nodes with CLI timeout of '5' tries and CLI delay of '3' seconds and using database 'leveldb' with crypto from 'cryptogen'
LOCAL_VERSION=v2.5.9
DOCKER_IMAGE_VERSION=v2.5.9
/home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/../bin/cryptogen
Generating certificates using cryptogen tool
Creating Org1 Identities
+ cryptogen generate --config=./organizations/cryptogen/crypto-config-org1.yaml --output=organizations
org1.example.com
+ res=0
Creating Org2 Identities
+ cryptogen generate --config=./organizations/cryptogen/crypto-config-org2.yaml --output=organizations
org2.example.com
+ res=0
Creating Orderer Org Identities
+ cryptogen generate --config=./organizations/cryptogen/crypto-config-orderer.yaml --output=organizations
+ res=0
Generating CCP files for Org1 and Org2
unknown shorthand flag: 'f' in -f
See 'docker --help'.

Usage:  docker [OPTIONS] COMMAND

A self-sufficient runtime for containers

Common Commands:
  run         Create and run a new container from an image
  exec        Execute a command in a running container
  ps          List containers
  build       Build an image from a Dockerfile
  pull        Download an image from a registry
  push        Upload an image to a registry
  images      List images
  login       Log in to a registry
  logout      Log out from a registry
  search      Search Docker Hub for images
  version     Show the Docker version information
  info        Display system-wide information

Management Commands:
  builder     Manage builds
  container   Manage containers
  context     Manage contexts
  image       Manage images
  manifest    Manage Docker image manifests and manifest lists
  network     Manage networks
  plugin      Manage plugins
  system      Manage Docker
  trust       Manage trust on Docker images
  volume      Manage volumes

Swarm Commands:
  swarm       Manage Swarm

Commands:
  attach      Attach local standard input, output, and error streams to a running container
  commit      Create a new image from a container's changes
  cp          Copy files/folders between a container and the local filesystem
  create      Create a new container
  diff        Inspect changes to files or directories on a container's filesystem
  events      Get real time events from the server
  export      Export a container's filesystem as a tar archive
  history     Show the history of an image
  import      Import the contents from a tarball to create a filesystem image
  inspect     Return low-level information on Docker objects
  kill        Kill one or more running containers
  load        Load an image from a tar archive or STDIN
  logs        Fetch the logs of a container
  pause       Pause all processes within one or more containers
  port        List port mappings or a specific mapping for the container
  rename      Rename a container
  restart     Restart one or more containers
  rm          Remove one or more containers
  rmi         Remove one or more images
  save        Save one or more images to a tar archive (streamed to STDOUT by default)
  start       Start one or more stopped containers
  stats       Display a live stream of container(s) resource usage statistics
  stop        Stop one or more running containers
  tag         Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE
  top         Display the running processes of a container
  unpause     Unpause all processes within one or more containers
  update      Update configuration of one or more containers
  wait        Block until one or more containers stop, then print their exit codes

Global Options:
      --config string      Location of client config files (default "/home/aj/.docker")
  -c, --context string     Name of the context to use to connect to the daemon (overrides DOCKER_HOST env var and default context set with "docker context use")
  -D, --debug              Enable debug mode
  -H, --host list          Daemon socket to connect to
  -l, --log-level string   Set the logging level ("debug", "info", "warn", "error", "fatal") (default "info")
      --tls                Use TLS; implied by --tlsverify
      --tlscacert string   Trust certs signed only by this CA (default "/home/aj/.docker/ca.pem")
      --tlscert string     Path to TLS certificate file (default "/home/aj/.docker/cert.pem")
      --tlskey string      Path to TLS key file (default "/home/aj/.docker/key.pem")
      --tlsverify          Use TLS and verify the remote
  -v, --version            Print version information and quit

Run 'docker COMMAND --help' for more information on a command.

For more help on how to use Docker, head to https://docs.docker.com/go/guides/

CONTAINER ID   IMAGE     COMMAND   CREATED   STATUS    PORTS     NAMES
aj@aj-Lenovo-ideapad-510-15IKB:~/go/src/github.com/adarshajha/fabric-samples/test-network$ docker ps -a
docker docker-compose hyperledger-fabric hyperledger
1个回答
0
投票

我检查了这个错误是因为根据 hyperledger-fabric 文档。它只建议安装docker,但不建议安装docker-compose。 所以我使用这个link来安装docker-compose,然后我的所有docker容器都启动并运行了。输出如下所示:-

aj@aj-Lenovo-ideapad-510-15IKB:~/go/src/github.com/adarshajha/fabric-samples/test-network$ ./network.sh up -ca -r -d -s -verbose
Using docker and docker-compose
Starting nodes with CLI timeout of '-d' tries and CLI delay of '3' seconds and using database '-verbose' with crypto from 'Certificate Authorities'
LOCAL_VERSION=v2.5.9
DOCKER_IMAGE_VERSION=v2.5.9
CA_LOCAL_VERSION=v1.5.12
CA_DOCKER_IMAGE_VERSION=v1.5.12
Generating certificates using Fabric CA
Creating network "fabric_test" with the default driver
Creating ca_org2    ... done
Creating ca_org1    ... done
Creating ca_orderer ... done
Creating Org1 Identities
Enrolling the CA admin
+ fabric-ca-client enroll -u https://admin:adminpw@localhost:7054 --caname ca-org1 --tls.certfiles /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/fabric-ca/org1/ca-cert.pem
2024/09/28 16:12:43 [INFO] Created a default configuration file at /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/fabric-ca-client-config.yaml
2024/09/28 16:12:43 [INFO] TLS Enabled
2024/09/28 16:12:43 [INFO] generating key: &{A:ecdsa S:256}
2024/09/28 16:12:43 [INFO] encoded CSR
2024/09/28 16:12:43 [INFO] Stored client certificate at /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/msp/signcerts/cert.pem
2024/09/28 16:12:43 [INFO] Stored root CA certificate at /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/msp/cacerts/localhost-7054-ca-org1.pem
2024/09/28 16:12:43 [INFO] Stored Issuer public key at /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/msp/IssuerPublicKey
2024/09/28 16:12:43 [INFO] Stored Issuer revocation public key at /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/msp/IssuerRevocationPublicKey
Registering peer0
+ fabric-ca-client register --caname ca-org1 --id.name peer0 --id.secret peer0pw --id.type peer --tls.certfiles /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/fabric-ca/org1/ca-cert.pem
2024/09/28 16:12:43 [INFO] Configuration file location: /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/fabric-ca-client-config.yaml
2024/09/28 16:12:43 [INFO] TLS Enabled
2024/09/28 16:12:43 [INFO] TLS Enabled
Password: peer0pw
Registering user
+ fabric-ca-client register --caname ca-org1 --id.name user1 --id.secret user1pw --id.type client --tls.certfiles /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/fabric-ca/org1/ca-cert.pem
2024/09/28 16:12:44 [INFO] Configuration file location: /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/fabric-ca-client-config.yaml
2024/09/28 16:12:44 [INFO] TLS Enabled
2024/09/28 16:12:44 [INFO] TLS Enabled
Password: user1pw
Registering the org admin
+ fabric-ca-client register --caname ca-org1 --id.name org1admin --id.secret org1adminpw --id.type admin --tls.certfiles /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/fabric-ca/org1/ca-cert.pem
2024/09/28 16:12:44 [INFO] Configuration file location: /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/fabric-ca-client-config.yaml
2024/09/28 16:12:44 [INFO] TLS Enabled
2024/09/28 16:12:44 [INFO] TLS Enabled
Password: org1adminpw
Generating the peer0 msp
+ fabric-ca-client enroll -u https://peer0:peer0pw@localhost:7054 --caname ca-org1 -M /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/msp --tls.certfiles /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/fabric-ca/org1/ca-cert.pem
2024/09/28 16:12:44 [INFO] TLS Enabled
2024/09/28 16:12:44 [INFO] generating key: &{A:ecdsa S:256}
2024/09/28 16:12:44 [INFO] encoded CSR
2024/09/28 16:12:45 [INFO] Stored client certificate at /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/msp/signcerts/cert.pem
2024/09/28 16:12:45 [INFO] Stored root CA certificate at /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/msp/cacerts/localhost-7054-ca-org1.pem
2024/09/28 16:12:45 [INFO] Stored Issuer public key at /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/msp/IssuerPublicKey
2024/09/28 16:12:45 [INFO] Stored Issuer revocation public key at /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/msp/IssuerRevocationPublicKey
Generating the peer0-tls certificates, use --csr.hosts to specify Subject Alternative Names
+ fabric-ca-client enroll -u https://peer0:peer0pw@localhost:7054 --caname ca-org1 -M /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls --enrollment.profile tls --csr.hosts peer0.org1.example.com --csr.hosts localhost --tls.certfiles /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/fabric-ca/org1/ca-cert.pem
2024/09/28 16:12:45 [INFO] TLS Enabled
2024/09/28 16:12:45 [INFO] generating key: &{A:ecdsa S:256}
2024/09/28 16:12:45 [INFO] encoded CSR
2024/09/28 16:12:45 [INFO] Stored client certificate at /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/signcerts/cert.pem
2024/09/28 16:12:45 [INFO] Stored TLS root CA certificate at /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/tlscacerts/tls-localhost-7054-ca-org1.pem
2024/09/28 16:12:45 [INFO] Stored Issuer public key at /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/IssuerPublicKey
2024/09/28 16:12:45 [INFO] Stored Issuer revocation public key at /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/IssuerRevocationPublicKey
Generating the user msp
+ fabric-ca-client enroll -u https://user1:user1pw@localhost:7054 --caname ca-org1 -M /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/users/[email protected]/msp --tls.certfiles /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/fabric-ca/org1/ca-cert.pem
2024/09/28 16:12:45 [INFO] TLS Enabled
2024/09/28 16:12:45 [INFO] generating key: &{A:ecdsa S:256}
2024/09/28 16:12:45 [INFO] encoded CSR
2024/09/28 16:12:46 [INFO] Stored client certificate at /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/users/[email protected]/msp/signcerts/cert.pem
2024/09/28 16:12:46 [INFO] Stored root CA certificate at /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/users/[email protected]/msp/cacerts/localhost-7054-ca-org1.pem
2024/09/28 16:12:46 [INFO] Stored Issuer public key at /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/users/[email protected]/msp/IssuerPublicKey
2024/09/28 16:12:46 [INFO] Stored Issuer revocation public key at /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/users/[email protected]/msp/IssuerRevocationPublicKey
Generating the org admin msp
+ fabric-ca-client enroll -u https://org1admin:org1adminpw@localhost:7054 --caname ca-org1 -M /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/users/[email protected]/msp --tls.certfiles /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/fabric-ca/org1/ca-cert.pem
2024/09/28 16:12:46 [INFO] TLS Enabled
2024/09/28 16:12:46 [INFO] generating key: &{A:ecdsa S:256}
2024/09/28 16:12:46 [INFO] encoded CSR
2024/09/28 16:12:46 [INFO] Stored client certificate at /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/users/[email protected]/msp/signcerts/cert.pem
2024/09/28 16:12:46 [INFO] Stored root CA certificate at /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/users/[email protected]/msp/cacerts/localhost-7054-ca-org1.pem
2024/09/28 16:12:46 [INFO] Stored Issuer public key at /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/users/[email protected]/msp/IssuerPublicKey
2024/09/28 16:12:46 [INFO] Stored Issuer revocation public key at /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/peerOrganizations/org1.example.com/users/[email protected]/msp/IssuerRevocationPublicKey
Creating Org2 Identities
Enrolling the CA admin
+ fabric-ca-client enroll -u https://admin:adminpw@localhost:8054 --caname ca-org2 --tls.certfiles /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/fabric-ca/org2/ca-cert.pem
2024/09/28 16:12:46 [INFO] Created a default configuration file at /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/peerOrganizations/org2.example.com/fabric-ca-client-config.yaml
2024/09/28 16:12:46 [INFO] TLS Enabled
2024/09/28 16:12:46 [INFO] generating key: &{A:ecdsa S:256}
2024/09/28 16:12:46 [INFO] encoded CSR
2024/09/28 16:12:47 [INFO] Stored client certificate at /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/peerOrganizations/org2.example.com/msp/signcerts/cert.pem
2024/09/28 16:12:47 [INFO] Stored root CA certificate at /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/peerOrganizations/org2.example.com/msp/cacerts/localhost-8054-ca-org2.pem
2024/09/28 16:12:47 [INFO] Stored Issuer public key at /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/peerOrganizations/org2.example.com/msp/IssuerPublicKey
2024/09/28 16:12:47 [INFO] Stored Issuer revocation public key at /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/peerOrganizations/org2.example.com/msp/IssuerRevocationPublicKey
Registering peer0
+ fabric-ca-client register --caname ca-org2 --id.name peer0 --id.secret peer0pw --id.type peer --tls.certfiles /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/fabric-ca/org2/ca-cert.pem
2024/09/28 16:12:47 [INFO] Configuration file location: /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/peerOrganizations/org2.example.com/fabric-ca-client-config.yaml
2024/09/28 16:12:47 [INFO] TLS Enabled
2024/09/28 16:12:47 [INFO] TLS Enabled
Password: peer0pw
Registering user
+ fabric-ca-client register --caname ca-org2 --id.name user1 --id.secret user1pw --id.type client --tls.certfiles /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/fabric-ca/org2/ca-cert.pem
2024/09/28 16:12:47 [INFO] Configuration file location: /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/peerOrganizations/org2.example.com/fabric-ca-client-config.yaml
2024/09/28 16:12:47 [INFO] TLS Enabled
2024/09/28 16:12:47 [INFO] TLS Enabled
Password: user1pw
Registering the org admin
+ fabric-ca-client register --caname ca-org2 --id.name org2admin --id.secret org2adminpw --id.type admin --tls.certfiles /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/fabric-ca/org2/ca-cert.pem
2024/09/28 16:12:48 [INFO] Configuration file location: /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/peerOrganizations/org2.example.com/fabric-ca-client-config.yaml
2024/09/28 16:12:48 [INFO] TLS Enabled
2024/09/28 16:12:48 [INFO] TLS Enabled
Password: org2adminpw
Generating the peer0 msp
+ fabric-ca-client enroll -u https://peer0:peer0pw@localhost:8054 --caname ca-org2 -M /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/msp --tls.certfiles /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/fabric-ca/org2/ca-cert.pem
2024/09/28 16:12:48 [INFO] TLS Enabled
2024/09/28 16:12:48 [INFO] generating key: &{A:ecdsa S:256}
2024/09/28 16:12:48 [INFO] encoded CSR
2024/09/28 16:12:48 [INFO] Stored client certificate at /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/msp/signcerts/cert.pem
2024/09/28 16:12:48 [INFO] Stored root CA certificate at /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/msp/cacerts/localhost-8054-ca-org2.pem
2024/09/28 16:12:48 [INFO] Stored Issuer public key at /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/msp/IssuerPublicKey
2024/09/28 16:12:48 [INFO] Stored Issuer revocation public key at /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/msp/IssuerRevocationPublicKey
Generating the peer0-tls certificates, use --csr.hosts to specify Subject Alternative Names
+ fabric-ca-client enroll -u https://peer0:peer0pw@localhost:8054 --caname ca-org2 -M /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls --enrollment.profile tls --csr.hosts peer0.org2.example.com --csr.hosts localhost --tls.certfiles /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/fabric-ca/org2/ca-cert.pem
2024/09/28 16:12:49 [INFO] TLS Enabled
2024/09/28 16:12:49 [INFO] generating key: &{A:ecdsa S:256}
2024/09/28 16:12:49 [INFO] encoded CSR
2024/09/28 16:12:49 [INFO] Stored client certificate at /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/signcerts/cert.pem
2024/09/28 16:12:49 [INFO] Stored TLS root CA certificate at /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/tlscacerts/tls-localhost-8054-ca-org2.pem
2024/09/28 16:12:49 [INFO] Stored Issuer public key at /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/IssuerPublicKey
2024/09/28 16:12:49 [INFO] Stored Issuer revocation public key at /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/peerOrganizations/org2.example.com/peers/peer0.org2.example.com/tls/IssuerRevocationPublicKey
Generating the user msp
+ fabric-ca-client enroll -u https://user1:user1pw@localhost:8054 --caname ca-org2 -M /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/peerOrganizations/org2.example.com/users/[email protected]/msp --tls.certfiles /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/fabric-ca/org2/ca-cert.pem
2024/09/28 16:12:49 [INFO] TLS Enabled
2024/09/28 16:12:49 [INFO] generating key: &{A:ecdsa S:256}
2024/09/28 16:12:49 [INFO] encoded CSR
2024/09/28 16:12:49 [INFO] Stored client certificate at /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/peerOrganizations/org2.example.com/users/[email protected]/msp/signcerts/cert.pem
2024/09/28 16:12:49 [INFO] Stored root CA certificate at /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/peerOrganizations/org2.example.com/users/[email protected]/msp/cacerts/localhost-8054-ca-org2.pem
2024/09/28 16:12:49 [INFO] Stored Issuer public key at /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/peerOrganizations/org2.example.com/users/[email protected]/msp/IssuerPublicKey
2024/09/28 16:12:49 [INFO] Stored Issuer revocation public key at /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/peerOrganizations/org2.example.com/users/[email protected]/msp/IssuerRevocationPublicKey
Generating the org admin msp
+ fabric-ca-client enroll -u https://org2admin:org2adminpw@localhost:8054 --caname ca-org2 -M /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/peerOrganizations/org2.example.com/users/[email protected]/msp --tls.certfiles /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/fabric-ca/org2/ca-cert.pem
2024/09/28 16:12:50 [INFO] TLS Enabled
2024/09/28 16:12:50 [INFO] generating key: &{A:ecdsa S:256}
2024/09/28 16:12:50 [INFO] encoded CSR
2024/09/28 16:12:50 [INFO] Stored client certificate at /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/peerOrganizations/org2.example.com/users/[email protected]/msp/signcerts/cert.pem
2024/09/28 16:12:50 [INFO] Stored root CA certificate at /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/peerOrganizations/org2.example.com/users/[email protected]/msp/cacerts/localhost-8054-ca-org2.pem
2024/09/28 16:12:50 [INFO] Stored Issuer public key at /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/peerOrganizations/org2.example.com/users/[email protected]/msp/IssuerPublicKey
2024/09/28 16:12:50 [INFO] Stored Issuer revocation public key at /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/peerOrganizations/org2.example.com/users/[email protected]/msp/IssuerRevocationPublicKey
Creating Orderer Org Identities
Enrolling the CA admin
+ fabric-ca-client enroll -u https://admin:adminpw@localhost:9054 --caname ca-orderer --tls.certfiles /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/fabric-ca/ordererOrg/ca-cert.pem
2024/09/28 16:12:50 [INFO] Created a default configuration file at /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/ordererOrganizations/example.com/fabric-ca-client-config.yaml
2024/09/28 16:12:50 [INFO] TLS Enabled
2024/09/28 16:12:50 [INFO] generating key: &{A:ecdsa S:256}
2024/09/28 16:12:50 [INFO] encoded CSR
2024/09/28 16:12:50 [INFO] Stored client certificate at /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/ordererOrganizations/example.com/msp/signcerts/cert.pem
2024/09/28 16:12:50 [INFO] Stored root CA certificate at /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/ordererOrganizations/example.com/msp/cacerts/localhost-9054-ca-orderer.pem
2024/09/28 16:12:50 [INFO] Stored Issuer public key at /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/ordererOrganizations/example.com/msp/IssuerPublicKey
2024/09/28 16:12:50 [INFO] Stored Issuer revocation public key at /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/ordererOrganizations/example.com/msp/IssuerRevocationPublicKey
Registering orderer
+ fabric-ca-client register --caname ca-orderer --id.name orderer --id.secret ordererpw --id.type orderer --tls.certfiles /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/fabric-ca/ordererOrg/ca-cert.pem
2024/09/28 16:12:51 [INFO] Configuration file location: /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/ordererOrganizations/example.com/fabric-ca-client-config.yaml
2024/09/28 16:12:51 [INFO] TLS Enabled
2024/09/28 16:12:51 [INFO] TLS Enabled
Password: ordererpw
Registering the orderer admin
+ fabric-ca-client register --caname ca-orderer --id.name ordererAdmin --id.secret ordererAdminpw --id.type admin --tls.certfiles /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/fabric-ca/ordererOrg/ca-cert.pem
2024/09/28 16:12:51 [INFO] Configuration file location: /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/ordererOrganizations/example.com/fabric-ca-client-config.yaml
2024/09/28 16:12:51 [INFO] TLS Enabled
2024/09/28 16:12:51 [INFO] TLS Enabled
Password: ordererAdminpw
Generating the orderer msp
+ fabric-ca-client enroll -u https://orderer:ordererpw@localhost:9054 --caname ca-orderer -M /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp --tls.certfiles /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/fabric-ca/ordererOrg/ca-cert.pem
2024/09/28 16:12:51 [INFO] TLS Enabled
2024/09/28 16:12:51 [INFO] generating key: &{A:ecdsa S:256}
2024/09/28 16:12:51 [INFO] encoded CSR
2024/09/28 16:12:52 [INFO] Stored client certificate at /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/signcerts/cert.pem
2024/09/28 16:12:52 [INFO] Stored root CA certificate at /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/cacerts/localhost-9054-ca-orderer.pem
2024/09/28 16:12:52 [INFO] Stored Issuer public key at /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/IssuerPublicKey
2024/09/28 16:12:52 [INFO] Stored Issuer revocation public key at /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/msp/IssuerRevocationPublicKey
Generating the orderer-tls certificates, use --csr.hosts to specify Subject Alternative Names
+ fabric-ca-client enroll -u https://orderer:ordererpw@localhost:9054 --caname ca-orderer -M /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/tls --enrollment.profile tls --csr.hosts orderer.example.com --csr.hosts localhost --tls.certfiles /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/fabric-ca/ordererOrg/ca-cert.pem
2024/09/28 16:12:52 [INFO] TLS Enabled
2024/09/28 16:12:52 [INFO] generating key: &{A:ecdsa S:256}
2024/09/28 16:12:52 [INFO] encoded CSR
2024/09/28 16:12:52 [INFO] Stored client certificate at /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/tls/signcerts/cert.pem
2024/09/28 16:12:52 [INFO] Stored TLS root CA certificate at /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/tls/tlscacerts/tls-localhost-9054-ca-orderer.pem
2024/09/28 16:12:52 [INFO] Stored Issuer public key at /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/tls/IssuerPublicKey
2024/09/28 16:12:52 [INFO] Stored Issuer revocation public key at /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/ordererOrganizations/example.com/orderers/orderer.example.com/tls/IssuerRevocationPublicKey
Generating the admin msp
+ fabric-ca-client enroll -u https://ordererAdmin:ordererAdminpw@localhost:9054 --caname ca-orderer -M /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/ordererOrganizations/example.com/users/[email protected]/msp --tls.certfiles /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/fabric-ca/ordererOrg/ca-cert.pem
2024/09/28 16:12:52 [INFO] TLS Enabled
2024/09/28 16:12:52 [INFO] generating key: &{A:ecdsa S:256}
2024/09/28 16:12:52 [INFO] encoded CSR
2024/09/28 16:12:53 [INFO] Stored client certificate at /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/ordererOrganizations/example.com/users/[email protected]/msp/signcerts/cert.pem
2024/09/28 16:12:53 [INFO] Stored root CA certificate at /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/ordererOrganizations/example.com/users/[email protected]/msp/cacerts/localhost-9054-ca-orderer.pem
2024/09/28 16:12:53 [INFO] Stored Issuer public key at /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/ordererOrganizations/example.com/users/[email protected]/msp/IssuerPublicKey
2024/09/28 16:12:53 [INFO] Stored Issuer revocation public key at /home/aj/go/src/github.com/adarshajha/fabric-samples/test-network/organizations/ordererOrganizations/example.com/users/[email protected]/msp/IssuerRevocationPublicKey
Generating CCP files for Org1 and Org2
Creating volume "compose_orderer.example.com" with default driver
Creating volume "compose_peer0.org1.example.com" with default driver
Creating volume "compose_peer0.org2.example.com" with default driver
WARNING: Found orphan containers (ca_org1, ca_orderer, ca_org2) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up.
Creating peer0.org1.example.com ... done
Creating peer0.org2.example.com ... done
Creating orderer.example.com    ... done
CONTAINER ID   IMAGE                               COMMAND                  CREATED          STATUS                  PORTS                                                                                                                             NAMES
bcf8e4430444   hyperledger/fabric-orderer:latest   "orderer"                7 seconds ago    Up Less than a second   0.0.0.0:7050->7050/tcp, :::7050->7050/tcp, 0.0.0.0:7053->7053/tcp, :::7053->7053/tcp, 0.0.0.0:9443->9443/tcp, :::9443->9443/tcp   orderer.example.com
1f91fc15f76d   hyperledger/fabric-peer:latest      "peer node start"        7 seconds ago    Up Less than a second   0.0.0.0:9051->9051/tcp, :::9051->9051/tcp, 7051/tcp, 0.0.0.0:9445->9445/tcp, :::9445->9445/tcp                                    peer0.org2.example.com
e60adfa2bd5f   hyperledger/fabric-peer:latest      "peer node start"        7 seconds ago    Up Less than a second   0.0.0.0:7051->7051/tcp, :::7051->7051/tcp, 0.0.0.0:9444->9444/tcp, :::9444->9444/tcp                                              peer0.org1.example.com
3eefff06b32d   hyperledger/fabric-ca:latest        "sh -c 'fabric-ca-se…"   27 seconds ago   Up 22 seconds           0.0.0.0:9054->9054/tcp, :::9054->9054/tcp, 7054/tcp, 0.0.0.0:19054->19054/tcp, :::19054->19054/tcp                                ca_orderer
66b498d9060f   hyperledger/fabric-ca:latest        "sh -c 'fabric-ca-se…"   27 seconds ago   Up 22 seconds           0.0.0.0:7054->7054/tcp, :::7054->7054/tcp, 0.0.0.0:17054->17054/tcp, :::17054->17054/tcp                                          ca_org1
8e826cf062d9   hyperledger/fabric-ca:latest        "sh -c 'fabric-ca-se…"   27 seconds ago   Up 22 seconds           0.0.0.0:8054->8054/tcp, :::8054->8054/tcp, 7054/tcp, 0.0.0.0:18054->18054/tcp, :::18054->18054/tcp 
© www.soinside.com 2019 - 2024. All rights reserved.