CIS251_5.5_Managing_Container_Storage_Corey_Adams
docx
keyboard_arrow_up
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
Related Documents
Recommended textbooks for you
Text book image
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
Text book image
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Text book image
LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
Computer Science
ISBN:9781337569798
Author:ECKERT
Publisher:CENGAGE L
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Text book image
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning
Text book image
Systems Architecture
Computer Science
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Cengage Learning
Recommended textbooks for you
- Text book imageMicrosoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,Text book imageProgramming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:CengageText book imageLINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.Computer ScienceISBN:9781337569798Author:ECKERTPublisher:CENGAGE L
- Text book imageEBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENTText book imageC++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage LearningText book imageSystems ArchitectureComputer ScienceISBN:9781305080195Author:Stephen D. BurdPublisher:Cengage Learning
Text book image
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
Text book image
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Text book image
LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
Computer Science
ISBN:9781337569798
Author:ECKERT
Publisher:CENGAGE L
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Text book image
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning
Text book image
Systems Architecture
Computer Science
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Cengage Learning