Comments (12)
I now see https://github.com/amir20/dozzle/pull/84/files#diff-210c31cd49f34ac9a1fcc99dd77d9030R48. Maybe it makes sense to add that back? I like that you can also filter based on labels. Which will probably make a lot of sense for people.
from dozzle.
Hmm...It's not possible right now. But I could add it. What's your use case? Is it that important to hide other containers for you?
from dozzle.
Thanks for getting back so quick!
I was hoping to use/include this with mdoq the premise being there could be multiple projects on a single server. With the app mounting the docker.sock
it can obviously see everything. Which is not ideal, as we need to keep seperation between projects.
It's something I'm happy to add and create a PR for, if you could provide some build steps so I can test locally before creating the PR?
from dozzle.
Nice. That would be a good addition to mdoq.
It would be really nice to get a PR. I am really busy at work so won't have much time to work on this until next week. But I can review and merge.
Here are some things that might get you going with building Dozzle:
- Install nodejs v12
- Install go v1.12.7
- Install packr globally by doing
go get -u github.com/gobuffalo/packr/packr
outside for dozzle npm i
to install node mods- You can look at the automated build file script to understand how I build everything.
npm start
should automatically dogo mod download
and start dozzle at port localhost:8080
Here is what you would need to change:
- Add a new string flag that can be configure the regex (or whatever you decide to do) at https://github.com/amir20/dozzle/blob/master/main.go#L38
- Possibly add the logic at https://github.com/amir20/dozzle/blob/master/main.go#L135 to filter based on the flag.
- If it's important, then you would need to also update https://github.com/amir20/dozzle/blob/master/main.go#L148 to not allow logs of filtered docker images
I hope this helps. Let me know if you have any questions.
from dozzle.
Nice one, PR raised
from dozzle.
Should be fixed in #85
from dozzle.
@adamzero1 Released v1.12 can you try it out?
from dozzle.
@amir20 looks to be working
version: "3"
services:
dozzle:
container_name: dozzle
image: amir20/dozzle:latest
environment:
- DOZZLE_CONTAINERRESTRICTIONS=6893-.*
- DOZZLE_TAILSIZE=100
- DOZZLE_FILTERNAME=6893-.*
volumes:
- /var/run/docker.sock:/var/run/docker.sock
ports:
- 9999:8080
Only issue is we have now lost the ability to pass in any other kind of filter. We are forced to filter on name. I had thought you wanted it more generic. where you could pass in something like:
DOZZLE_FILTERNAME=name=6893-.*
It still works for what I need though, nice one!
from dozzle.
Ah I see. Did you have that in your PR? I may have not pulled the latest. Sorry if I missed it. I looked at the filters and it seemed like name
would be the most common since it won't change.
On a plus a side, you don't need *
. You should just be able to do foo
which will work just like .*foo.*
. That was the nice part of using the docker API directly.
from dozzle.
@adamzero1 I added this back in #87.
from dozzle.
Sorry have had a hectic few days, yeah opening up so it wasn't name filter specific would be better overall I feel.
from dozzle.
No worries. Sounds good. The feature should be deployed now. Thanks for your help and PR. It was an interesting feature I hadn't thought of.
from dozzle.
Related Issues (20)
- auto-redirect to new container broken HOT 6
- Open a bash terminal into the dozzle docker container HOT 1
- Swarm mode switch when viewing on mobile device HOT 7
- Filter combined Output of hosts HOT 1
- Add configured memory value of container HOT 6
- Resize handle is very sensitive to position HOT 4
- Dozzle-Agent version HOT 11
- CPU percentage HOT 3
- Allow override of docker engine Id from an environment variable HOT 6
- [FEATURE] tool-tip on certain values HOT 1
- The log is not fully displayed. HOT 7
- System becomes irresponsive, 100% resource utilization if high container count HOT 7
- Authentication doesn't work HOT 10
- Add enviroment variables to override Display and Option default values HOT 1
- Suppress ANSI color escape sequence from logs HOT 12
- Is there only a version of the AMR architecture available?Mine is based on the AMD64 architecture HOT 3
- [8.1.0] Label.Container HOT 5
- Storage Space HOT 19
- When Agents are updated, Dozzle UI doesn't get the latest version
- Container actions not implemented for agents
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dozzle.