I have created an alpine docker image and created+populated a volume in the Dockerfile with
mkdir /opt put_stuff_in_/opt VOLUME /opt
however, that creates a rather unrecognisable volume name, which seems impossible to change. The VOLUME docs don’t seem to say how it’s possible to rename a volume created this way.
If it’s possible to create a volume with docker volume create NAME
If I want to mount the volume to another container I need to know that volume id rather than a nice friendly name - is this possible?