Cleaning up in Docker - Part 1
  
  
  ·93 words·1 min
  
  
  
  
  
  
  
  
  
  
    
  
    system-administration
  
  
  
  
    
  
    tech
  
  
  
  
  
  
  
  
  
  
  
  
    
  
    containers
  
  
  
  
    
  
    debian
  
  
  
  
    
  
    docker
  
  
  
  
    
  
    iot
  
  
  
  
    
  
    linux
  
  
  
  
    
  
    raspberry-pi
  
  
  
  
    
  
    raspbian
  
  
  
  
    
  
    technology
  
  
  
  
  
  
    Table of Contents
So you have read how to get Docker on your Raspberry Pi, had a play around and now you have containers, images and volumes running wild. You’re overwhelmed, the shipis overloaded; rather than sink, how about we reset and clean up?
Pause, take a breath and following along:
Stop all running containers #
docker stop $(docker ps -a -q)
Remove all containers #
docker rm $(docker ps -a -q)
Remove all volumes #
docker volume prune -f
Remove all images #
docker rmi $(docker images -q)
Back to square one. Keep on tinkering!
Related
Running Containers with Docker on Raspberry Pi
        
        
  
  
  ·374 words·2 mins
  
  
  
  
  
  
  
  
  
  
    
  
    system-administration
  
  
  
  
    
  
    tech
  
  
  
  
  
  
  
  
  
  
  
  
    
  
    alpine
  
  
  
  
    
  
    containers
  
  
  
  
    
  
    debian
  
  
  
  
    
  
    docker
  
  
  
  
    
  
    iot
  
  
  
  
    
  
    linux
  
  
  
  
    
  
    raspberry-pi
  
  
  
  
    
  
    raspbian
  
  
  
  
    
  
    technology
  
  
  
  
  
  
        
          In the previous blog post, we setup and configured Docker on the Raspberry Pi.
        
        
      Setup Docker on Raspberry Pi
        
        
  
  
  ·266 words·2 mins
  
  
  
  
  
  
  
  
  
  
    
  
    tech
  
  
  
  
  
  
  
  
  
  
  
  
    
  
    alpine
  
  
  
  
    
  
    busybox
  
  
  
  
    
  
    containers
  
  
  
  
    
  
    debian
  
  
  
  
    
  
    docker
  
  
  
  
    
  
    iot
  
  
  
  
    
  
    linux
  
  
  
  
    
  
    raspberry-pi
  
  
  
  
    
  
    raspbian
  
  
  
  
    
  
    technology
  
  
  
  
  
  
        
          With the 1.
        
        
      Predictable failure - Tweeting with Python Part 2
        
        
  
  
  ·320 words·2 mins
  
  
  
  
  
  
  
  
  
  
    
  
    tech
  
  
  
  
  
  
  
  
  
  
  
  
    
  
    debian
  
  
  
  
    
  
    iot
  
  
  
  
    
  
    linux
  
  
  
  
    
  
    python
  
  
  
  
    
  
    raspberry-pi
  
  
  
  
    
  
    raspbian
  
  
  
  
    
  
    technology
  
  
  
  
    
  
    twitter
  
  
  
  
    
  
    twython
  
  
  
  
  
  
        
          Part 1 of the series saw us signing up to Twitter and getting access to the API to send tweets, setting up Twython and developing out shutdown script.
        
        
       
        