remove com.

This commit is contained in:
vmorganp
2021-10-13 23:17:07 -07:00
parent a92e3b9696
commit 27479945a0
4 changed files with 7 additions and 7 deletions

View File

@@ -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

View File

@@ -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"
- "lazytainer.marker=lazytainer"

View File

@@ -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)) == "" {

View File

@@ -19,7 +19,7 @@ services:
stdin_open: true
restart: unless-stopped
labels:
- "com.lazytainer.marker=lazytainer"
- "lazytainer.marker=lazytainer"
depends_on:
- lazytainer
volumes: