Skip to content

Instantly share code, notes, and snippets.

@Gilbert88
Gilbert88 / doc
Last active March 1, 2016 00:45
test
We couldn’t find that file to show.
@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]
[==========] Running 574 tests from 11 test cases.
[----------] Global test environment set-up.
[----------] 1 test from Resources_Filter_BENCHMARK_Test
[ RUN ] Resources_Filter_BENCHMARK_Test.Filters
Took 423.072619ms to perform 50000 'r.nonRevocable()' operations on cpus:1; gpus:1; mem:128; disk:256
Took 70.842721ms to perform 50000 'r.revocable()' operations on cpus{REV}:1
Took 331.795768ms to perform 50000 'r.unreserved()' operations on cpus:1; gpus:1; mem:128; disk:256
Took 535.380919ms to perform 50000 'r.reserved(role)' operations on cpus(reservations: [(STATIC,role)]):1; gpus(reservations: [(STATIC,role)]):1; mem(reservations: [(STATIC,role)]):128; disk(reservations: [(STATIC,role)]):256
[ OK ] Resources_Filter_BENCHMARK_Test.Filters (1362 ms)
[----------] 1 test from Resources_Filter_BENCHMARK_Test (1362 ms total)