Installation and usage of the platform
Mainnet: fixing issues¶
When deploying a platform with a connection to Mainnet, it is possible that such errors may occur during the node deployment phase:
ERROR: for node-1 Cannot create container for service node-1: Conflict. The container name "/node-1" is already in use by container "47cfd7a517e160d201ae969b24392ca0bc2b9720c73e7324dac45daaa24814cb". You have to remove (or rename) that conCreating node-2 ... error
ERROR: for node-2 Cannot create container for service node-2: Conflict. The container name "/node-2" is already in use by container "ccd28832f1fb5457186e50d5e5Creating node-0 ... error
tainer to be able to reuse that name.
ERROR: for node-0 Cannot create container for service node-0: Conflict. The conCreating postgres ... error
eb8ac184f88195f1a560ee8ef7ade5c46f899d". You have to remove (or rename) that container to be able to reuse that name.
ERROR: for postgres Cannot create container for service postgres: Conflict. The container name "/postgres" is already in use by container "d4bc6d758faafcc9b2bc352b9cbcc5dc909f2959059b7abf17db0088916506d1". You have to remove (or rename) that container to be able to reuse that name.
ERROR: for node-1 Cannot create container for service node-1: Conflict. The container name "/node-1" is already in use by container "47cfd7a517e160d201ae969b24392ca0bc2b9720c73e7324dac45daaa24814cb". You have to remove (or rename) that container to be able to reuse that name.
ERROR: for node-2 Cannot create container for service node-2: Conflict. The container name "/node-2" is already in use by container "ccd28832f1fb5457186e50d5e58f98ed3b35c944931589a42a0262a205a17393". You have to remove (or rename) that container to be able to reuse that name.
ERROR: for node-0 Cannot create container for service node-0: Conflict. The container name "/node-0" is already in use by container "7ed421ac8c8c5ca91a916970c1eb8ac184f88195f1a560ee8ef7ade5c46f899d". You have to remove (or rename) that container to be able to reuse that name.
ERROR: for postgres Cannot create container for service postgres: Conflict. The container name "/postgres" is already in use by container "d4bc6d758faafcc9b2bc352b9cbcc5dc909f2959059b7abf17db0088916506d1". You have to remove (or rename) that container to be able to reuse that name.
ERROR: Encountered errors while bringing up the project.
Cause: Containers of individual nodes or services are already in use by running containers.
Solution: Stop the node with the docker-compose down
command. Use the command docker stop [container ID]
to stop running containers of nodes and services. You can enter several running container IDs in a row, separated by a space, or stop all containers with the command docker stop $(docker ps -a -q)
. Then use the command docker rm [container ID]
to remove them. The IDs of the containers used are available in error reports like the one above. You can remove multiple containers or all used containers with a single command using a similar syntax.
After removing the extraneous containers, turn the platform around again.