anderlli0053 / DEV-tools

📦 General development tools for applications and games and pretty much everything else too :) . Created and maintained by Andrew Poženel - anderlli0053 . 📦
https://andrew-pozenel.xyz/
The Unlicense
119 stars 23 forks source link

You must specify an object for the Get-Member cmdlet #91

Closed dong-lufei closed 1 year ago

dong-lufei commented 1 year ago
scoop update docker-desktop
docker-desktop: 4.16.2 -> 4.16.3
Updating one outdated app:
Updating 'docker-desktop' (4.16.2 -> 4.16.3)
Downloading new version
Starting download with aria2 ...
Download: Download Results:
Download: gid   |stat|avg speed  |path/URI
Download: ======+====+===========+=======================================================
Download: b63527|OK  |    23MiB/s|D:/scoop_user_apps/cache/docker-desktop#4.16.3#https_desktop.docker.com_win_main_amd64_96739_Docker_20Desktop_20Installer.exe_DockerDesktopInstall.exe
Download: Status Legend:
Download: (OK):download completed.
Checking hash of Docker%20Desktop%20Installer.exe ... ok.
Uninstalling 'docker-desktop' (4.16.2)
Running uninstaller... done.
Unlinking D:\scoop_user_apps\apps\docker-desktop\current
Installing 'docker-desktop' (4.16.3) [64bit] from dev-tools bucket
Loading Docker%20Desktop%20Installer.exe from cache.
Running installer... done.
Linking D:\scoop_user_apps\apps\docker-desktop\current => D:\scoop_user_apps\apps\docker-desktop\4.16.3
Running post_install script...
Get-Member: D:\scoop_user_apps\apps\scoop\current\libexec\scoop-hold.ps1:58
Line |
  58 |      $json | Get-Member -MemberType Properties | ForEach-Object { $ins …
     |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | You must specify an object for the Get-Member cmdlet.
docker-desktop is now held and can not be updated anymore.
'docker-desktop' (4.16.3) was installed successfully!
Notes
-----
All files will be installed into DEFAULT docker directory. (C:\Program Files\Docker)
I suggest to change the docker images location:
https://docs.docker.com/engine/reference/commandline/dockerd/#daemon-configuration-file

Updating is handled by docker itself.
Run 'scoop hold docker-desktop' to disable updates via Scoop.

'scoop uninstall docker' will uninstall docker completely.
Images, VM, settings, ...
anderlli0053 commented 1 year ago

Cannot reproduce, i tried to run it and it ran without any problems:

PowerShell 7.3.4
PS C:\Windows\System32> scoop install anderlli0053_DEV-tools/docker-desktop
WARN  This is a nightly version. Downloaded files won't be verified.
Installing 'docker-desktop' (nightly-20230430) [64bit] from anderlli0053_DEV-tools bucket
Loading Docker%20Desktop%20Installer.exe from cache.
Running pre_install script...

Deployment Image Servicing and Management tool
Version: 10.0.19041.844

Error: 5

An error occurred while creating the log file.
Ensure that the path to the log file exists and that you have Read/Write permissions on the folder where the log files will be created.

Deployment Image Servicing and Management tool
Version: 10.0.19041.844

Error: 5

An error occurred while creating the log file.
Ensure that the path to the log file exists and that you have Read/Write permissions on the folder where the log files will be created.
Running installer... done.
WARN  Installer added 'C:\Users\ander\scoop\apps\docker-desktop\nightly-20230430\resources\bin' to system path. You might want to remove this manually (requires admin permission).
Linking ~\scoop\apps\docker-desktop\current => ~\scoop\apps\docker-desktop\nightly-20230430
Creating shim for 'docker'.
'docker-desktop' (nightly-20230430) was installed successfully!
Notes
-----
Conditions:
refer to the:
https://learn.microsoft.com/en-us/windows/wsl/install
PS C:\Windows\System32>