- Start a fresh Ubuntu container: 
docker run -it ubuntu bash - Inside the container:
apt-get updateapt-get install figlet- Detach from container: 
<ctl-p> <ctl-q> 
 - Get the container id: 
docker ps - Save the container as an image: 
docker commit $container_id my-image - Test the new image: 
docker run my-image figlet hello 
          Created
          January 13, 2016 19:55 
        
      - 
      
 - 
        
Save ingydotnet/ab93ade7926474c204d8 to your computer and use it in GitHub Desktop.  
    Committing Docker containers
  
        
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment