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

Delete apk --update and rm /var/cache/apk/* #66

Merged
merged 1 commit into from Dec 14, 2016
Merged

Delete apk --update and rm /var/cache/apk/* #66

merged 1 commit into from Dec 14, 2016

Conversation

suzukaze
Copy link
Member

apk --no-cache is allows users to install packages with an index that is updated and used on-the-fly and not cached locally.
This avoids the need to use --update and remove /var/cache/apk/* when done installing packages.

Refer:Disabling Cache at docker-alpine.

Build an image with a new Dockerfile and run it:

$ docker build -t suzukaze/fluentd:0.12 .
$ docker run -it --rm suzukaze/fluentd:0.12 sh
~ $ ls /var/cache/apk
~ $

/var/cache/apk directory is empty.

apk --no-cache is allows users to install packages with an index that is updated and used on-the-fly and not cached locally.
This avoids the need to use --update and remove /var/cache/apk/* when done installing packages.
@repeatedly repeatedly merged commit bb4f8c0 into fluent:master Dec 14, 2016
@repeatedly
Copy link
Member

I see. Thanks!

repeatedly added a commit that referenced this pull request Dec 15, 2016
…he_apk

Delete `apk --update` and `rm /var/cache/apk/*`
repeatedly added a commit that referenced this pull request Dec 15, 2016
…he_apk

Delete `apk --update` and `rm /var/cache/apk/*`
repeatedly added a commit that referenced this pull request Dec 15, 2016
…he_apk

Delete `apk --update` and `rm /var/cache/apk/*`
repeatedly added a commit that referenced this pull request Dec 15, 2016
…he_apk

Delete `apk --update` and `rm /var/cache/apk/*`
repeatedly added a commit that referenced this pull request Dec 15, 2016
…he_apk

Delete `apk --update` and `rm /var/cache/apk/*`
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.

None yet

2 participants