acslogspout

command module
v0.0.0-...-eb12a8d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 3, 2016 License: MIT Imports: 7 Imported by: 0

README

acslogspout

acslogspout是基于logspout(https://github.com/gliderlabs/logspout) 扩展的,适用于阿里云容器服务的日志收集功能。

使用方法

  1. 执行build.sh,会在bin目录下编译出logspout
  2. docker build -t registry.aliyuncs.com/yournamespace/acslogspout:test
  3. docker push registry.aliyuncs.com/yournamenamespace/acslogspout:test
  4. 以compose模板方式在阿里云容器服务创建应用:
version: 2
services:
    logspout:
        image: registry.aliyuncs.com/yourname/acslogspout:test
        labels:
            aliyun.global: true
        restart: always
        volumes:
            - /acs/log/:/acs/log/
            - /var/run/docker.sock:/tmp/docker.sock
        environment:
            - ROUTE_URIS=file:///acs/log
        net: host

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
adapters
raw
generated by go-extpoints -- DO NOT EDIT
generated by go-extpoints -- DO NOT EDIT
transports
tcp
tls
udp

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL