You can add the VOLUME instruction as an array.
VOLUME ["/var/www", "/var/log/apache2", "/etc/apache2"]
Check out the storage and volumes section and the Image Creation, Management, and Registry section of the docker cert course it covers how to mount a shared directory and create a docker file.
© Linux Academy. All rights reserved.
Pinehead® and the Linux Academy logo® is the registered trademark of Linux Academy in the U.S. and other countries.
Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries.