Skip to content

Instantly share code, notes, and snippets.

@douglasmiranda
Forked from cpswan/upgrade-docker.sh
Last active August 29, 2015 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save douglasmiranda/2bbf35157d78108dc498 to your computer and use it in GitHub Desktop.
Save douglasmiranda/2bbf35157d78108dc498 to your computer and use it in GitHub Desktop.
#!/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