Quantcast
Channel: Blog E
Viewing all articles
Browse latest Browse all 542

[TIL] Today I Learn 2016/03/10

$
0
0

Run docker container as default system services

  1. Start docker daemon when ubuntu launch.
  2. Add conf on service as follow
description "cAdvisor"

start on filesystem and started docker
stop on runlevel [!2345]

#respawn

# @see https://github.com/google/cadvisor/blob/master/docs/running.md#standalone
script

    docker rm -f cadvisor  || true

    docker run  \
        --volume=/:/rootfs:ro          \
        --volume=/var/run:/var/run:rw  \
        --volume=/sys:/sys:ro          \
        --volume=/var/lib/docker/:/var/lib/docker:ro  \
        --publish=8080:8080  \
        --detach=true    \
        --restart=always \
        --name=cadvisor  \
        google/cadvisor:latest

end script

For more detail, check here. Automatically start containers


Viewing all articles
Browse latest Browse all 542

Trending Articles


“Sayo lang ako sigurado”


BARKADA TAGALOG QUOTES


Pokemon para colorear


Sapos para colorear


Inggit Quotes and Taray Quotes


UPDATE SC IDOL: TWO BECOME ONE


RE: Mutton Pies (frankie241)


Ka longiing longsem kaba skhem bad kaba khlain ka pynlong kein ia ka...


Vimeo Create - Video Maker & Editor 1.5.2 by Vimeo Inc


Vimeo 10.7.1 by Vimeo.com, Inc.


FORECLOSURE OF REAL ESTATE MORTGAGE


KASAMBAHAY BILL IN THE HOUSE


Girasoles para colorear


OFW quotes : Pinoy Tagalog Quotes


Vimeo 11.8.1 by Vimeo.com, Inc.


Re:Mutton Pies (lleechef)


Re: lwIP PIC32 port - new title : CycloneTCP a new open source stack for...


Hato lada ym dei namar ka jingpyrshah jong U JJM Nichols Roy (Bah Joy) ngin...


Vimeo 10.7.0 by Vimeo.com, Inc.


From Male to Female