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

syslog-ng can fail after a commit #25

Closed
wants to merge 1 commit into from
Closed

Conversation

kingdonb
Copy link
Collaborator

You might be bit by this sooner or later, I started diagnostic here: moby/moby#4336

Come to find out that docker's (go's?) implementation of tar will incorrectly preserve named sockets in committed images as empty files. This is only a problem for those who commit images that have already been run once, since syslog-ng doesn't clean up after itself.

It works for most, since the dockerfile does not attempt to start syslog-ng during the build.

I propose adding this kind of change to the front of the syslog-ng runit service script (pull attached):

if [ ! -S /dev/log ]; then rm -f /dev/log; fi

@FooBarWidget
Copy link
Member

Tar? As far as I know docker commit does not involve tar: it's supposed to make an AUFS filesystem snapshot. I'll wait for the Docker developers to confirm the issue first.

@kingdonb kingdonb closed this Mar 7, 2014
@kingdonb kingdonb deleted the master branch March 7, 2014 17:11
@kingdonb
Copy link
Collaborator Author

kingdonb commented Mar 7, 2014

Moved to #31 for rebase so that patch can pull cleanly into new HEAD.

kingdonb pushed a commit to kingdonb/baseimage-docker that referenced this pull request Apr 30, 2014
/dev/log can't be a file (it's an error)
mpeterson pushed a commit to mpeterson/docker-phusion-baseimage that referenced this pull request May 10, 2014
/dev/log can't be a file (it's an error)
FooBarWidget pushed a commit that referenced this pull request May 12, 2014
kingdonb pushed a commit to kingdonb/baseimage-docker that referenced this pull request May 17, 2014
lattwood pushed a commit to lattwood/baseimage-docker that referenced this pull request Dec 17, 2015
guedressel pushed a commit to protosrc/baseimage-docker that referenced this pull request Oct 31, 2017
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

Successfully merging this pull request may close these issues.

2 participants