Task: Stop and Delete a Docker Container if It's Running
Task: Stop and Delete a Docker Container if It's Running: a task in Terminal-Lego-15k (Harbor dataset). Write a bash script that safely stops and removes a Docker container by name, but only if it currently exists (running or stopped). The script should handle all cases gracefully without…
The task
Write a bash script that safely stops and removes a Docker container by name, but only if it currently exists (running or stopped). The script should handle all cases gracefully without producing errors, making it suitable for use in automated build scripts.
Part of PrimeIntellect/Terminal-Lego-15k.