Skip to content

Instantly share code, notes, and snippets.

@cpswan
Last active August 29, 2015 14:23
Upgrade Docker and restart running containers
#!/bin/bash
datenow=$(date +%s)
sudo docker ps > /tmp/docker."$datenow"
sudo apt-get update && sudo apt-get install -y lxc-docker
sudo docker start $(tail -n +2 /tmp/docker."$datenow" | cut -c1-12)
@sahilsk
Copy link

sahilsk commented Jul 2, 2015

cool..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment