Skip to content

Instantly share code, notes, and snippets.

@ArthurDelannoyazerty
Created April 16, 2025 13:23
Show Gist options
  • Save ArthurDelannoyazerty/6aafb64e991e46f57c86073be1e03ec7 to your computer and use it in GitHub Desktop.
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