Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

kill_docker.sh 294 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
  1. # Find the container ID by name
  2. container_id=$(docker ps | grep hatedemo | awk '{print $1}')
  3. # Check if the container is running
  4. if [ -n "$container_id" ]; then
  5. # Stop the container
  6. docker stop "$container_id"
  7. echo "Container stopped."
  8. else
  9. echo "Container is not running."
  10. fi
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...