Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a note about docker's rootless mode #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,16 @@ But note that this makes the data in these directories **readable to anybody wit
### Certain fields cannot be selected for aggregation or filtering
Kibana determines which fields are available in an index when it first creates that index. If documents featuring new fields are added, those will not be available for aggregation or filtering. To fix this, go to Settings -> Index Patterns -> select your index -> click on the "refresh" button. This should add any new fields to the index.

### Docker's rootless mode

app-http-logger communicates with the host's docker daemon through the `/var/run/docker.sock` volume which is mapped to the host's `/var/run/docker.sock` file by default. However, if you use docker's [rootless mode](https://docs.docker.com/engine/security/rootless/) this file doesn't exist and it lives at [`$XDG_RUNTIME_DIR/docker.sock` by default](https://docs.docker.com/engine/security/rootless/#daemon) instead. To ensure that the communication with the docker daemon works as expected you can update the volumes in the docker-compose.yml file:

```diff
volumes:
- - /var/run/docker.sock:/var/run/docker.sock
+ - /run/user/1000/docker.sock:/var/run/docker.sock
```

## Components

* [docker-monitor-service](https://github.com/redpencilio/docker-monitor-service/): keeps track of running containers in the database.
Expand Down