Skip to content
This repository has been archived by the owner on Apr 22, 2020. It is now read-only.

#229 mount var/log as read-write #230

Merged
merged 5 commits into from
May 25, 2016
Merged

Conversation

mrandi
Copy link
Member

@mrandi mrandi commented May 20, 2016

fixes #229

@apfeiffer85
Copy link
Contributor

👍

@tuxlife
Copy link
Contributor

tuxlife commented May 20, 2016

👎

@tuxlife
Copy link
Contributor

tuxlife commented May 20, 2016

With this fix is it possible to change and remove the taupage systemlogs

@apfeiffer85
Copy link
Contributor

ok so we have to use some different directory for custom logs like /var/log/custom or something similar.

@apfeiffer85 apfeiffer85 assigned tuxlife and unassigned apfeiffer85 May 24, 2016
@apfeiffer85
Copy link
Contributor

apfeiffer85 commented May 24, 2016

we now only mount /var/log/custom as read-write

@tuxlife do you agree ?

@mrandi
Copy link
Member Author

mrandi commented May 24, 2016

👍

@tuxlife tuxlife assigned apfeiffer85 and unassigned tuxlife May 24, 2016
@tuxlife
Copy link
Contributor

tuxlife commented May 24, 2016

@apfeiffer85 Why did you need /var/log from the host under /var/log in docker?

Why not /var/log-docker/:/var/log and /var/log:/var/log-host?

@apfeiffer85
Copy link
Contributor

i guess there are some use cases where Teams need read access to /var/log/application.log and maybe other log files therefore was the read-only mount (this was already implemented).
And i guess there is no really need to mount /var/log into /var/log in the docker container it just was because of common place for logs.
We could definitely change this to something else like /var/log-host or anything else.

But what do you mean with /var/log-docker:/var/log ?

What we also did was to add a custom logdir /var/log/custom for custom application logs so we only mount /var/log/custom as read-write. But we also could mount this into /var/log-host/custom . This is necessary because the log shipping agents running on the host system and they can only follow logs from the host system ( or lets say it is easier to follow logs on the host system ).

@tuxlife
Copy link
Contributor

tuxlife commented May 25, 2016

👍

@apfeiffer85
Copy link
Contributor

New Solution is now:

mount /var/log from host system to the container dir /var/log-host (read-only)
And any custom logs will be saved at /var/log-custom (host system) and mounted as read-write to the container /var/log

@apfeiffer85 apfeiffer85 merged commit aed9628 into master May 25, 2016
@mrandi mrandi deleted the #229-var-log-read-write branch May 25, 2016 12:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

mount log directory as read-write in order to write custom log files
4 participants