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

socklog does not work out of the box with read-only rootfs #6

Open
mikroskeem opened this issue Apr 27, 2020 · 2 comments
Open

socklog does not work out of the box with read-only rootfs #6

mikroskeem opened this issue Apr 27, 2020 · 2 comments

Comments

@mikroskeem
Copy link

When using docker's --read-only and s6-overlay's S6_READ_ONLY_ROOT=1, then /var/log directory needs to be created before socklog can be used. Otherwise socklog yields error similar to #2 nonstop.

Considering that this is an add-on to s6-overlay, then perhaps this overlay could install an additional script setting up /var/log directory in case of S6_READ_ONLY_ROOT is enabled?

cat > /etc/cont-init.d/00-init-varlog <<EOF
#!/usr/bin/execlineb -P
mkdir -p /var/log
EOF
@jprjr
Copy link
Member

jprjr commented May 2, 2020 via email

@mikroskeem
Copy link
Author

Yes, /var is writable (it's tmpfs, I followed https://github.com/just-containers/s6-overlay#read-only-root-filesystem)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants