用法:
eg1:
VOLUME ["/var/www", "/var/log/apache2", "/etc/apache2"]
eg2:
VOLUME /var/log /var/db
详见:
https://docs.docker.com/engine/reference/builder/#volume
https://docs.docker.com/storage/volumes/
用法:
eg1:
VOLUME ["/var/www", "/var/log/apache2", "/etc/apache2"]
eg2:
VOLUME /var/log /var/db
详见:
https://docs.docker.com/engine/reference/builder/#volume
https://docs.docker.com/storage/volumes/