Add Fedora support to install_docker.sh

On Fedora, just install the docker-io package as supplied in the
Fedora repository.

Change-Id: Iea74878d3e1c434863c188ea2253817384e56bf4
This commit is contained in:
John Eckersberg 2014-02-13 16:21:24 -05:00
parent 305bad7887
commit 22dece0d96

View File

@ -30,6 +30,9 @@ SERVICE_TIMEOUT=${SERVICE_TIMEOUT:-60}
# Install Docker Service # Install Docker Service
# ====================== # ======================
if is_fedora; then
install_package docker-io socat
else
# Stop the auto-repo updates and do it when required here # Stop the auto-repo updates and do it when required here
NO_UPDATE_REPOS=True NO_UPDATE_REPOS=True
@ -39,6 +42,7 @@ install_package python-software-properties && \
sudo sh -c "echo deb $DOCKER_APT_REPO docker main > /etc/apt/sources.list.d/docker.list" sudo sh -c "echo deb $DOCKER_APT_REPO docker main > /etc/apt/sources.list.d/docker.list"
apt_get update apt_get update
install_package --force-yes lxc-docker socat install_package --force-yes lxc-docker socat
fi
# Start the daemon - restart just in case the package ever auto-starts... # Start the daemon - restart just in case the package ever auto-starts...
restart_service docker restart_service docker