concept net in category hyperledger

This is an excerpt from Manning's book Programming Hyperledger Fabric: Creating Permissioned Blockchains.
There are two modes a peer node can be run in and they are known as the
devandnetmodes. The config setting which controls the mode is given by thechaincode.modefield incore.yamland can be overridden using the correspondingCORE_CHAINCODE_MODEenvironment variable. Thechaincode.modeis set tonetin thecore.yamlthat ships with Fabric so that becomes the default mode of the peer. The factory installedcore.yamlprovides a good explanation of the two modes:# There are 2 modes: "dev" and "net". # In dev mode, user runs the chaincode after starting peer from # command line on local machine. # In net mode, peer will run chaincode in a docker container. mode: netThe
netmode is intended to be used in production. During development phase of the project, I have found thedevmode to be invaluable because of following two reasons:
This chapter has two main objectives: containerize the network of previous chapter and migrate peer nodes to
netmode. In addition we will show in this chapter how to re-use or migrate the entire corpus of data of previous chapter so that we don’t start with an empty ledger and do not have to re-do all the transactions we committed in previous chapter.