mirror of
https://github.com/vmorganp/Lazytainer.git
synced 2025-12-21 13:23:02 +01:00
remove com.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"
|
||||
@@ -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)) == "" {
|
||||
|
||||
@@ -19,7 +19,7 @@ services:
|
||||
stdin_open: true
|
||||
restart: unless-stopped
|
||||
labels:
|
||||
- "com.lazytainer.marker=lazytainer"
|
||||
- "lazytainer.marker=lazytainer"
|
||||
depends_on:
|
||||
- lazytainer
|
||||
volumes:
|
||||
|
||||
Reference in New Issue
Block a user