Skip to content

Instantly share code, notes, and snippets.

@Gilbert88
Gilbert88 / install-latest-docker.bash
Created May 12, 2016 20:38 — forked from sttts/install-latest-docker.bash
Install latest docker in CoreOS stable
mkdir -p /etc/systemd/system/docker.service.d
cat > /etc/systemd/system/docker.service.d/10-docker-latest.conf <<EOF
[Service]
ExecStartPre=/bin/bash -ec "test -f /var/lib/docker-latest || /usr/bin/curl -L -o /var/lib/docker-latest https://get.docker.com/builds/Linux/x86_64/docker-latest && /usr/bin/chmod +x /var/lib/docker-latest"
ExecStart=
ExecStart=/var/lib/docker-latest daemon --host=fd:// $DOCKER_OPTS $DOCKER_OPT_BIP $DOCKER_OPT_MTU $DOCKER_OPT_IPMASQ
EOF
cat > /etc/systemd/system/usr-bin-docker.mount <<EOF
[Unit]