diff --git a/README.md b/README.md index db509bb..11765c9 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ $ docker-compose up image: ghcr.io/vmorganp/lazytainer:master environment: - PORT=81,82 # comma separated list of ports...or just the one - - LABEL=lazytainer # value of com.lazytainer.marker for other containers that lazytainer checks + - LABEL=lazytainer # value of lazytainer.marker for other containers that lazytainer checks # - TIMEOUT=30 # OPTIONAL number of seconds to let container idle # - RXHISTLENGTH=10 # OPTIONAL number of seconds to keep rx history, uptime is calculated as first item and last item from this and must have a gap of at least $MINPACKETTHRESH # - MINPACKETTHRESH=10 # OPTIONAL number of packets that must be recieved to keepalive/start container @@ -42,7 +42,7 @@ $ docker-compose up depends_on: - lazytainer # wait for lazytainer to start before starting labels: - - "com.lazytainer.marker=lazytainer" # required label to make it work + - "lazytainer.marker=lazytainer" # required label to make it work ``` ## TODO diff --git a/docker-compose.yaml b/docker-compose.yaml index b939db3..05bb85b 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -5,7 +5,7 @@ services: image: ghcr.io/vmorganp/lazytainer:master environment: - PORT=81,82 # comma separated list of ports...or just the one - - LABEL=lazytainer # value of com.lazytainer.marker for other containers that lazytainer checks + - LABEL=lazytainer # value of lazytainer.marker for other containers that lazytainer checks # - TIMEOUT=30 # OPTIONAL number of seconds to let container idle # - RXHISTLENGTH=10 # OPTIONAL number of seconds to keep rx history, uptime is calculated as first item and last item from this and must have a gap of at least $MINPACKETTHRESH # - MINPACKETTHRESH=10 # OPTIONAL number of packets that must be recieved to keepalive/start container @@ -23,7 +23,7 @@ services: depends_on: - lazytainer labels: - - "com.lazytainer.marker=lazytainer" + - "lazytainer.marker=lazytainer" whoami2: container_name: whoami2 @@ -33,4 +33,4 @@ services: depends_on: - lazytainer labels: - - "com.lazytainer.marker=lazytainer" \ No newline at end of file + - "lazytainer.marker=lazytainer" \ No newline at end of file diff --git a/lazytainer.go b/lazytainer.go index 55b869f..2c6b758 100644 --- a/lazytainer.go +++ b/lazytainer.go @@ -126,7 +126,7 @@ func newContainer(id string, state string) *container { func get_containers() []container { containers := []container{} - out, err := exec.Command("/bin/sh", "-c", "docker ps -a --no-trunc --filter label=\"com.lazytainer.marker=$LABEL\" --format \"{{.ID}} {{.State}}\"").Output() // todo make this handle multiple ports? + out, err := exec.Command("/bin/sh", "-c", "docker ps -a --no-trunc --filter label=\"lazytainer.marker=$LABEL\" --format \"{{.ID}} {{.State}}\"").Output() // todo make this handle multiple ports? check(err) fmt.Println(string(out)) if strings.TrimSpace(string(out)) == "" { diff --git a/minecraft_example/docker-compose.yaml b/minecraft_example/docker-compose.yaml index ef87c37..1907c5b 100644 --- a/minecraft_example/docker-compose.yaml +++ b/minecraft_example/docker-compose.yaml @@ -19,7 +19,7 @@ services: stdin_open: true restart: unless-stopped labels: - - "com.lazytainer.marker=lazytainer" + - "lazytainer.marker=lazytainer" depends_on: - lazytainer volumes: