CIS251_5.5_Managing_Container_Storage_Corey_Adams

docx

School

ECPI University, Greensboro *

*We aren’t endorsed by this school

Course

251

Subject

Computer Science

Date

Jan 9, 2024

Type

docx

Pages

3

Uploaded by corada5995

Report
CIS251 – 5.5 – Managing Container Storage Corey Adams
Docker Storage Commands Command Example Description dir c:\ dir c:\ To view the available free space in the container. docker run --rm -it docker run --rm -it --storage-opt “size=50GB” iis-core-template cmd To increase the free space on the container to 50GB. docker run -it --rm -v docker run -it --rm -v D:\WebData:C:\ data:RW --name Storage-Test iis-core- template PowerShell Creates a bind mount to allow the container to share a folder with the host. docker run -it -p 8000:80 - v docker run -it -p 8000:80 -v D:\WebData:C:\ inetpub\wwwroot:RW --name Storage-Test iis-core-template PowerShell To use the D:\WebData folder to host the files for the website on your container. docker volume create WebSite docker volume create WebSite To create a volume named WebSite. docker run -it --rm -v WebSite docker run -it --rm -v WebSite:c:\data -- name Volume-Test iis-core-template PowerShell To use this volume with a virtual machine. docker inspect WebSite docker inspect WebSite To locate where the volume is stored on your system. docker run -it -p 8000:80 - docker run -it -p 8000:80 -v WebSite:C:\ Instead of specifying a folder you
v WebSite inetpub\wwwroot --name Volume-Test iis- core-template PowerShell specified a volume. IN addition, :RW was removed after c:\inetpub\ wwwroot as these are the default permissions in the container for the volume.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help