K
K
krll-k2017-06-07 01:07:59
Docker
krll-k, 2017-06-07 01:07:59

How to remove garbage crept between layers in docker images?

After each commit, my image adds impressive megabytes.
Why is this happening?
There is no magic docker add command in docker (similar to git), absolutely everything is added to the commit.
How to be?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
rustler2000, 2017-06-07
@rustler2000

Because a lot of files have been changed. Here they are all going into a new image.
If you only need what you need - then as the official dock says - use Dockerfile

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question