File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed
Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -243,12 +243,7 @@ ipfs-start test_dir: _check-docker
243243 echo " Waiting for IPFS to initialize..."
244244 sleep 5
245245
246- # Stop daemon to apply config changes before it connects to peers
247- echo " Stopping daemon to configure..."
248- docker exec ipfs-node ipfs shutdown || true
249- sleep 2
250-
251- # Configure IPFS for isolated mode (no external peer discovery)
246+ # Configure IPFS for isolated mode while daemon is running (config changes take effect on restart)
252247 echo " Configuring isolated mode..."
253248 docker exec ipfs-node ipfs bootstrap rm --all
254249 docker exec ipfs-node ipfs config --json Routing.Type ' "none"'
@@ -262,8 +257,8 @@ ipfs-start test_dir: _check-docker
262257 docker exec ipfs-node ipfs config Addresses.API " /ip4/0.0.0.0/tcp/${IPFS_API_PORT}"
263258 docker exec ipfs-node ipfs config Addresses.Gateway " /ip4/0.0.0.0/tcp/${IPFS_GATEWAY_PORT}"
264259
265- # Restart container to start daemon with clean config
266- echo " Starting daemon with isolated config..."
260+ # Restart container to apply config changes
261+ echo " Restarting daemon with isolated config..."
267262 docker restart ipfs-node
268263 sleep 5
269264
You can’t perform that action at this time.
0 commit comments