I've been playing around with docker containers recently including setting memory limits. But Google had wasn't much help. So posting a simple method I discovered here. You do need php installed in your container. truncate…

It seems the puppet apt module doesn't runs apt-get update more than once even when you explicitly define it if you haven't changes your sources.list. Because it thinks nothing has changed. This is an…