why doesn’t chown work in Dockerfile? [closed]

Answering my own question: it’s declared to be a volume. If you take out the VOLUME instruction, the chown takes effect.

What’s more, if you declare the volume after running chown, the chown settings remain in effect.

Leave a Comment