Chapter XIV nine analysis with you easily complete explosion WARNING: The COMPOSE_PROJECT_NAME

This series of articles:


Chapter one: nine analyze with you after blasting hyperledger fabric - Quick Start basic-network Sample

Chapter II: nine analyze with you after blasting hyperledger fabric - to quickly build environment GO

Chapter 3: nine analyze with you after blasting hyperledger fabric - Quick Start Sample first-network

Chapter 4: nine analyze with you after blasting hyperledger fabric - system logic architecture articles

Chapter V: nine analyze with you after blasting hyperledger fabirc - Network Node Introduction

Chapter 6:   nine analyze with you easily complete explosion hyperledger fabric - block and block chain introduced

Chapter 7:   nine analyze with you easily complete explosion hyperledger fabric - block chain tamper-resistant mechanism

Chapter 8: nine analyze with you easily complete explosion hyperledger fabric - Couchdb installation

Chapter 9: nine analyze with you easily complete explosion hyperledger fabric - NVM installation and Nodejs

Chapter X: nine analyze with you easily complete explosion hyperledger fabric - chaincode life cycle introduction

Chapter 11:  nine analyze with you easily complete explosion hyperledger fabric - to create alliances

Chapter XII:  nine analyze with you easily complete explosion hyperledger fabric - configtxlator early adopters

Chapter XIII:  nine analyze with you easily complete explosion hyperledger fabric - to create static organization

table of Contents

Description of the problem

2 Problem Solving


Description of the problem

        In docker-compose startup file to start the process of fabric, sometimes encounter this warning message:

WARNING: The COMPOSE_PROJECT_NAME variable is not set. Defaulting to a blank string.


2 Problem Solving

    The reason is that the problem sets some environment variables docker-compose.yaml file, but did not pass the environment variable values ​​during the boot process, so it will appear like this alarm information, if it is necessary to start the container environment variables, there may report an exception or error message, modify as follows:

Created in the root directory of the project .env profile, and then fill in this format, such as key = value configuration information in the configuration file, such as:  COMPOSE_PROJECT_NAME = jiuxi

        Start again, the problem can be resolved.

Guess you like

Origin blog.51cto.com/14625168/2471087