In this article, I’ll show you how I create a storage volume using Docker and assign it to a new Windows Container.
For previous articles In the series check:
- Part 1: Deploy Docker Container On Windows Server 2016
- Part 2: Deploy Docker On Windows Server 2016
- Part 3: Download Windows Images For Docker
- Part 4: Create A Windows Server 2016 Container Using Docker
- Part 5: Install IIS On A Windows Docker Container
Using Docker Volumes with Docker Container allows us to spin new container and use shared storage to keep configuration and data files.
docker volume create appvolume
docker volume ls
Docker run --name test01 -it -v c:\programdata\docker\volumes\data01:c:\data01 microsoft/windowsservercore cmd
To view the actual volume on the Docker host:
C:\ProgramData\docker\volumes