mirror of
https://github.com/portainer/portainer.git
synced 2025-08-05 13:55:21 +02:00
feat(global): hide containers with labels using -l flag (#19)
This commit is contained in:
parent
cd12243b0f
commit
808694d6b5
3 changed files with 95 additions and 19 deletions
16
README.md
16
README.md
|
@ -44,3 +44,19 @@ UI For Docker listens on port 9000 by default. If you run UI For Docker inside a
|
|||
|
||||
# Expose UI For Docker on 10.20.30.1:80
|
||||
$ docker run -d -p 10.20.30.1:80:9000 --privileged -v /var/run/docker.sock:/var/run/docker.sock cloudinovasi/cloudinovasi-ui
|
||||
|
||||
### Hide containers with specifc labels
|
||||
|
||||
You can hide specific containers from the containers view by using the `-hide-label` or `-l` options and specifying a label.
|
||||
|
||||
For example, take a container started with the label `owner=acme`:
|
||||
|
||||
```
|
||||
$ docker run -d --label owner=acme nginx
|
||||
```
|
||||
|
||||
You can hide it in the view by starting the ui with:
|
||||
|
||||
```
|
||||
$ docker run -d -p 9000:9000 --privileged -v /var/run/docker.sock:/var/run/docker.sock cloudinovasi/cloudinovasi-ui -l owner=acme
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue