Skip to content

Instantly share code, notes, and snippets.

@yccheok
Created February 6, 2018 18:00
Show Gist options
  • Select an option

  • Save yccheok/e02a87e596a30fd95fe93bafd3f6d74c to your computer and use it in GitHub Desktop.

Select an option

Save yccheok/e02a87e596a30fd95fe93bafd3f6d74c to your computer and use it in GitHub Desktop.
PS C:\Users\yccheok> docker volume create --name postgres_data --driver local
postgres_data
PS C:\Users\yccheok> dir $env:ALLUSERSPROFILE\docker\volumes
dir : Cannot find path 'C:\ProgramData\docker\volumes' because it does not exist.
At line:1 char:1
+ dir $env:ALLUSERSPROFILE\docker\volumes
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\ProgramData\docker\volumes:String) [Get-ChildItem], ItemNotFoundException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand
PS C:\Users\yccheok> dir $env:ALLUSERSPROFILE\docker\
Directory: C:\ProgramData\docker
Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 7/2/2018 1:26 AM tmp-d4w
-a---- 4/2/2018 11:59 PM 101756 service.2.txt
-a---- 5/2/2018 2:51 AM 2079882 service.3.txt
-a---- 5/2/2018 11:59 PM 10253488 service.4.txt
-a---- 6/2/2018 4:31 PM 3636941 service.5.txt
-a---- 6/2/2018 11:58 PM 5175597 service.6.txt
-a---- 7/2/2018 1:59 AM 958156 service.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment