Last active
August 29, 2015 14:23
-
-
Save cpswan/7f9cdf49b5c9b1fc0c13 to your computer and use it in GitHub Desktop.
Upgrade Docker and restart running containers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
good catch @gmarkall - copy/paste error from actual script to gist :(