Skip to content

Instantly share code, notes, and snippets.

@ArthurDelannoyazerty
Last active December 4, 2025 10:37
Show Gist options
  • Select an option

  • Save ArthurDelannoyazerty/6aafb64e991e46f57c86073be1e03ec7 to your computer and use it in GitHub Desktop.

Select an option

Save ArthurDelannoyazerty/6aafb64e991e46f57c86073be1e03ec7 to your computer and use it in GitHub Desktop.
docker run --rm -v "$PWD:/pwd" busybox rm -rf /pwd/<element>
  1. Create a small linux docker (busybox)
  2. Make the current terminal location a volume binded to /pwd in the container
  3. Remove an element from that location (/pwd/<element>)
  4. Erase the launched container (--rm)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment