Skip to content

Conversation

@pmikolajczyk41
Copy link
Member

Running ./test-node.bash creates a ton of auxiliary containers (used for one-shot actions, like config preparation). Unfortunately, the script doesn't remove then which:

  1. pollutes docker space with lots of dead containers
  2. pollutes logs with warnings like:
WARN[0000] Found orphan containers ([
  nitro-testnode-sequencer-run-747910b47e23 
  nitro-testnode-scripts-run-a08522fda575 
  nitro-testnode-scripts-run-2a91f046f22d 
  nitro-testnode-scripts-run-5b115e3e3314 
  nitro-testnode-scripts-run-e64f5b255be4 
  nitro-testnode-scripts-run-e5088e1ff316 
  nitro-testnode-scripts-run-4e3216118797 
  nitro-testnode-scripts-run-8b6c8e986018 
  nitro-testnode-scripts-run-29373b8e250c 
  nitro-testnode-scripts-run-dacd378e0a35 
  nitro-testnode-geth-run-571b194062a0 
  nitro-testnode-scripts-run-6846cac9f10b 
  nitro-testnode-geth-run-81bfa8f691a0 
  nitro-testnode-geth-run-0d06d27138fc 
  nitro-testnode-geth-run-ead58fbb8d7e 
  nitro-testnode-scripts-run-b06e3e8f486b
]) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up. 

Generalizes #147
Closes NIT-3941

before:
image

after:
image

…docker-containers

# Conflicts:
#	test-node.bash
Copy link
Collaborator

@ganeshvanahalli ganeshvanahalli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.
I think its good to have this merged in before the next release<->master sync

@eljobe eljobe merged commit 4788c0a into master Oct 6, 2025
26 checks passed
@pmikolajczyk41 pmikolajczyk41 deleted the pmikolajczyk/clean-docker-containers branch October 6, 2025 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants