Docker volumes
Docker volumes are outside the union filesystem and exist as normal directories on the host filesystem. We can also share an existing folder with a container; all the files available in the folder will be available on the container. This enables a great way of sharing large quantities of data between host and container. Let us say we want to install software on a container, such as SQL Server or MySQL. We do not have to copy the huge file. Instead we can mount the folder to the container and use the relative path within the container to complete the installation. This section explains the options available to create and manage Docker volumes.
Docker provides an option to list volumes which are available on a container host. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access