2013-03-11 22:03:22 -04:00
|
|
|
#!/bin/sh
|
|
|
|
# This script is meant for quick & easy install via 'curl URL-OF-SCRIPT | bash'
|
2013-02-25 15:27:29 -05:00
|
|
|
# Courtesy of Jeff Lindsay <progrium@gmail.com>
|
|
|
|
|
|
|
|
echo "Ensuring dependencies are installed..."
|
2013-02-25 15:27:51 -05:00
|
|
|
apt-get --yes install lxc wget bsdtar 2>&1 > /dev/null
|
2013-02-25 15:27:29 -05:00
|
|
|
|
2013-03-12 02:07:16 -04:00
|
|
|
echo "Downloading docker binary and uncompressing into /usr/local/bin..."
|
|
|
|
curl -s http://get.docker.io/builds/$(uname -s)/$(uname -m)/docker-master.tgz |
|
|
|
|
tar -C /usr/local/bin --strip-components=1 -zxf- \
|
|
|
|
docker-master/docker docker-master/dockerd
|
2013-02-25 15:27:29 -05:00
|
|
|
|
|
|
|
if [[ -f /etc/init/dockerd.conf ]]
|
|
|
|
then
|
|
|
|
echo "Upstart script already exists."
|
|
|
|
else
|
|
|
|
echo "Creating /etc/init/dockerd.conf..."
|
|
|
|
echo "exec /usr/local/bin/dockerd" > /etc/init/dockerd.conf
|
|
|
|
fi
|
|
|
|
|
2013-03-12 02:08:21 -04:00
|
|
|
echo "Starting dockerd..."
|
|
|
|
start dockerd > /dev/null
|
2013-02-25 15:27:29 -05:00
|
|
|
|
|
|
|
echo "Finished!"
|
|
|
|
echo
|