-
Notifications
You must be signed in to change notification settings - Fork 147
Keep docker container size under control #165
Comments
Hi! I'm a data science student and I'm very interesting in this topic/solution. Have you considered using an alpine base image? |
Hi @gilcolon71, while switching to a smaller base image like alpine can definitely be useful, that's more of a peripheral concern. I think docker/for-mac#371 does a better job of explaining the key issue. |
From Allow compose to run arbitrary commands at the host level after or before containers are started: |
This comment details a solution that worked for me, after installing docker edge on High Sierra the |
@WGierke and @calvernaz thanks for the input! So I guess the solution is to upgrade and manually clean occasionally? |
Indeed |
I think so, yes |
@calvernaz and @WGierke got it. Perhaps we should update the documentation to include this information then. |
Overview
It appears that multiple runs of
docker-compose -f local.yml build
increase the size of theData
without removing stale artifacts. My current~/Library/Containers/com.docker.docker
folder is over 26GB. There should be a convenient script that can be run to remove all unneeded docker files.Expected Behavior
Running the script should remove all unneeded docker files.
Technical details
the clean commands should not remove the image caches
This feature should be implemented in
local.yml
Acceptance criteria
docker-compose -f local.yml build
should first remove unneeded docker filesNOTE: All PRs must follow the standard PR checklist.
The text was updated successfully, but these errors were encountered: