Skip to content

Instantly share code, notes, and snippets.

@rfay
Created May 10, 2022 22:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rfay/2a6eff22f05ac9e0668306d9e49d02f0 to your computer and use it in GitHub Desktop.
Save rfay/2a6eff22f05ac9e0668306d9e49d02f0 to your computer and use it in GitHub Desktop.
Failure installing dd-ext:0.5.2
PS C:\WINDOWS\system32> docker extension install slimdotai/dd-ext:0.5.2
Extensions can install binaries, invoke commands and access files on your machine.
Are you sure you want to continue? [y/N] y
Installing new extension "slimdotai/dd-ext:0.5.2"
Installing service in Desktop VM...
Setting additional compose attributes
VM service started
executing 'docker cp d38acd41dae136949c71353d021d98aa6dbb801f6f67579b87f798746097f542:/codi.svg C:\Users\randy\AppData\Roaming\Docker\extensions\slimdotai_dd-ext\codi.svg' : exit status 1:
Error response from daemon: i/o timeout
Removing extension slimdotai/dd-ext:0.5.2...
Removing extension VM service...
Extension removed from Desktop VM
VM service socket forwarding stopped
Extension UI tab slim.ai removed
Extension "slim.ai" removed
1 error occurred:
* removing extension image slimdotai/dd-ext:0.5.2
installation could not be completed due to: executing 'docker cp d38acd41dae136949c71353d021d98aa6dbb801f6f67579b87f798746097f542:/codi.svg C:\Users\randy\AppData\Roaming\Docker\extensions\slimdotai_dd-ext\codi.svg' : exit status 1:
Error response from daemon: i/o timeout
Copy link

ghost commented May 11, 2022

I am not quite sure what is going on there. It appears to be something in Docker Desktop itself. I verified the file exists in the image, which would point to something related to the docker extension command or docker daemon/VM itself on Windows. Have you reached out to the community channel for docker on Slack?

  1. pulled the indicated version
$ docker pull slimdotai/dd-ext:0.5.2
0.5.2: Pulling from slimdotai/dd-ext
d5fd17ec1767: Already exists
7b696d18d990: Pull complete
15178e835bc7: Pull complete
d41fa051a1fe: Pull complete
4f4fb700ef54: Pull complete
64b19aecd740: Pull complete
0cf4b94745a8: Pull complete
2477f2b15e07: Pull complete
bf9aa705baf6: Pull complete
45a752eb0d9d: Pull complete
38ffb26841b5: Pull complete
Digest: sha256:58ff1c3dc504af6112d02ce6bdba0315ebf971b461f306a9935d04908e4b4e96
Status: Downloaded newer image for slimdotai/dd-ext:0.5.2
docker.io/slimdotai/dd-ext:0.5.2
  1. Verified the file exists and has contents.
$ docker run -it --entrypoint=/bin/bash slimdotai/dd-ext:0.5.2
root@1d919e2b1604:/project# cd /
root@1d919e2b1604:/# ls
bin  boot  codi.svg  dev  docker-compose.yaml  etc  home  lib  lib32  lib64  libx32  media  metadata.json  mnt  opt  proc  project  root  run  sbin  srv  sys  tmp  ui  usr  var
root@1d919e2b1604:/# cat codi.svg
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 25.3.1, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
	 viewBox="0 0 777.8 514.8" style="enable-background:new 0 0 777.8 514.8;" xml:space="preserve">
<style type="text/css">
svg {
        color-scheme:light dark;
      }
      @media (prefers-color-scheme:dark) {
        svg {
          fill: #FFFFFF;
        }
      }
      @media (prefers-color-scheme:white) {
        svg {
          fill: #1D1D1D;
        }
      }
</style>
<g id="Master_Logo_Artwork">
</g>
<g id="full-rgb">
	<g>
		<a xlink:href="74.2349019607843" >
			<path id="fullLogo_8_" class="st0" d="M200.8,289.3c5.8-7.2,4.7-17.6-2.5-23.4s-17.6-4.7-23.4,2.5l-22.1,27.4
				c-7.2,8.9-11.1,20-11.1,31.4s4,22.6,11.1,31.4l22.1,27.4c3.3,4.1,8.1,6.2,13,6.2c3.7,0,7.4-1.2,10.5-3.7
				c7.2-5.8,8.3-16.3,2.5-23.4l-22.1-27.4c-4.9-6.1-4.9-14.9,0-21L200.8,289.3z"/>
		</a>
		<a xlink:href="74.2349019607843" >
			<path id="fullLogo_7_" class="st0" d="M493.9,289.3c5.8-7.2,4.7-17.6-2.5-23.4s-17.6-4.7-23.4,2.5l-22.1,27.4
				c-7.2,8.9-11.1,20-11.1,31.4s4,22.6,11.1,31.4L468,386c3.3,4.1,8.1,6.2,13,6.2c3.7,0,7.4-1.2,10.5-3.7c7.2-5.8,8.3-16.3,2.5-23.4
				l-22.1-27.4c-4.9-6.1-4.9-14.9,0-21L493.9,289.3z"/>
		</a>
		<a xlink:href="74.2349019607843" >
			<path id="fullLogo_6_" class="st0" d="M385.5,377.8c-8-4.6-18.2-1.9-22.8,6.1c-7.7,13.4-22.1,21.7-37.5,21.7s-29.8-8.3-37.5-21.7
				c-4.6-8-14.8-10.7-22.8-6.1s-10.7,14.8-6.1,22.8c13.7,23.6,39.1,38.3,66.4,38.3s52.7-14.7,66.4-38.3
				C396.2,392.6,393.4,382.4,385.5,377.8z"/>
		</a>
		<path id="fullLogo_5_" class="st0" d="M681.2,224.7c-5.6-2.3-9.4-7.5-9.9-13.5c-2.1-24-7.9-47.3-17.3-69.5
			c-11.7-27.6-28.4-52.4-49.7-73.7C562.5,26.3,505.8,0,393.8,0h-56.2l0,0c-31.3,0-61.7,6.1-90.3,18.2
			c-27.6,11.7-52.4,28.4-73.7,49.7s-38,46.1-49.7,73.7c-9.7,22.8-15.5,46.8-17.5,71.5c-0.4,4.9-3.4,9.2-7.9,10.9
			c-25,9.2-47.4,25-64.5,45.8c-10.8,13.1-19.2,27.8-25,43.7c-8,21.9-10.7,45.3-8,69.1c3,26.3,13.1,51.5,29.2,72.6
			c29.2,38.2,72.8,59.6,119.8,59.6h102.5h272.8h80.6c133.9,0,171.9-100.2,171.9-148.1C777.8,343.3,770.3,260.3,681.2,224.7z
			 M252.5,481.5H152.3c-26.9,0-53.5-8.2-74.5-25c-28.5-22.7-44.5-56-44.5-91.7c0-26.9,9.4-53.2,26.4-73.9
			c16.7-20.4,40-34.6,65.6-40.1c7.9-1.7,13.8-8.5,13.7-16.6c0-0.8,0-1.5,0-2.3c0-26.8,5.3-52.8,15.6-77.3
			c10-23.7,24.3-44.9,42.6-63.2s39.5-32.6,63.2-42.6c24.5-10.4,50.5-15.6,77.3-15.6s52.8,5.3,77.3,15.6c23.7,10,44.9,24.3,63.2,42.6
			c18.3,18.3,32.6,39.5,42.6,63.2c10.4,24.5,15.6,50.5,15.6,77.3c0,0.8,0,1.6,0,2.4c-0.1,8,5.7,14.8,13.6,16.4
			c25.6,5.5,48.9,19.7,65.7,40.1c17,20.8,26.4,47,26.4,73.9c0,35.7-15.9,69-44.5,91.7c-21.1,16.7-47.6,25-74.5,25L252.5,481.5z"/>
	</g>
</g>
<g id="black-rgb">
</g>
<g id="white-rgb">
</g>
<g id="invert-rgb">
</g>
<g id="gray-rgb">
</g>
root@1d919e2b1604:/#

@rfay
Copy link
Author

rfay commented May 11, 2022

Thanks for responding. My only intent was to try out your new extension, but I failed. I'll give it a try again on a different OS or with a new revision as it matures. I just wanted to report this issue to you, hoped that maybe you'd understand it.

Copy link

ghost commented May 19, 2022

@rfay I am working on a new incarnation of the extension - which should be coming out very soon. And hopefully is MUCH more stable :_ It was tested on Windows, Linux, Mac... so should be OK... When that drops, I will be sure to ping you back here. I'd love to get your feed back.

Copy link

ghost commented May 19, 2022

Oh - BTW - one thought on DD. I upgraded recently and found docker-extension needed to be upgraded as well. The release link is here:
https://docs.docker.com/desktop/extensions-sdk/#prerequisites

I might recommend getting the updated version of the docker-extension to match the current Docker Desktop install.

@rfay
Copy link
Author

rfay commented May 19, 2022

Thanks - is that true with yesterday's 4.5.2 as well? Seems like there might be a build problem if so

@eharris128slim
Copy link

Curious if you are still running into issues getting the slim extension installed??

On a relatively clean windows environment I was able to download Docker Desktop 4.8.2 & 0.2.4 of the extension cli.

I was then able to pull the latest slim extension docker pull slimdotai/dd-ext:0.7.2.

Some system information that you may find useful:
image

This is what my UI looked like once I got in (I had also installed the Anchore extension for testing purposes):
image

@rfay
Copy link
Author

rfay commented May 26, 2022

Thanks for the ping. I haven't tried it again, was waiting for the dust to settle.

@rfay
Copy link
Author

rfay commented Jun 11, 2022

Thanks so much - I installed this from the marketplace on Docker Desktop 4.9.0 and it installed fine. The feature that was exciting was the image comparison feature; I enjoyed working with it and it did help catch a bug in my application.

One thing I note: I have to restart Docker Desktop if one of the two images I'm comparing changes, there doesn't seem to be a way to refresh.

@eharris128slim
Copy link

I think we may have shipped out a patch to this problem.

Been running some tests on the most recent version of the slim.ai extension. Currently, if I run new docker build commands to create an image of name $FOO with tag $BAR, my diff view will display the following.

Screenshot (502)

@rfay
Copy link
Author

rfay commented Jun 28, 2022

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment