Docker won't copy files into local volume

Yes, this is the expected behavior: content is only copied from the image into an empty volume, not into an empty “bind mount” which is what you’re using now. If you need this for bind mounts, then you’ll need to have your container do that. Docker won’t do it for you.

(For example the WordPress image does that.)

2 Likes