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) |
This comment has been minimized.
This comment has been minimized.
What is |
This comment has been minimized.
This comment has been minimized.
@jpetazzo asked me why I didn't use |
This comment has been minimized.
This comment has been minimized.
good catch @gmarkall - copy/paste error from actual script to gist :( |
This comment has been minimized.
This comment has been minimized.
cool.. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This comment has been minimized.
This doesn't deal gracefully with linked containers as it will not respect the dependency chain