Skip to content
This repository has been archived by the owner on Nov 9, 2023. It is now read-only.

Shutting Down the Peer Process in the Docker Container Shuts Down the Container #346

Open
btiller123 opened this issue Jul 15, 2022 · 0 comments

Comments

@btiller123
Copy link

As specified in the cli reference when using the 'peer node unjoin' command, the peer must be offline. However, the only way to set the peer to be offline is to kill the peer process. Killing this process causes the docker container in which it is running to stop as well. This stoppage occurs because the pid for 'peer node start' is 1.

There are several problems with stopping the docker container when the peer is stopped.

  1. Pushing chaincode fails with Error: failed to retrieve endorser client for install: endorser client failed to connect to 172.26.123.170:7405: failed to create new connection: connection error: desc = "transport: error while dialing: dial tcp 172.26.123.170:7405: connect: connection refused"

  2. Since the container is stopped the externally run peer node commands fail.

  3. The container shell cannot be accessed to run the peer node command from within the container.

Please fix so that stopping the peer process does not shutdown the docker container, and that chain code can still be pushed to existing peers.

@btiller123 btiller123 changed the title Shutting Down the Peer Process in the Docker Container, Shuts Down the Container Shutting Down the Peer Process in the Docker Container Shuts Down the Container Jul 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant