RamiKrispin / vscode-python

A Tutorial for Setting Python Development Environment with VScode and Docker
837 stars 81 forks source link

Whalesay example not working properly #9

Open wernersa opened 2 weeks ago

wernersa commented 2 weeks ago

I get this error when running the whalesay example:

PS C:\Users\myself> docker run docker/whalesay cowsay Hello Python Users! 👋 🐍
Unable to find image 'docker/whalesay:latest' locally
latest: Pulling from docker/whalesay
docker: [DEPRECATION NOTICE] Docker Image Format v1 and Docker Image manifest version 2, schema 1 support is disabled by default and will be removed in an upcoming release. Suggest the author of docker.io/docker/whalesay:latest to upgrade the image to the OCI Format or Docker Image manifest v2, schema 2. More information at https://docs.docker.com/go/deprecated-image-specs/.
See 'docker run --help'.
RamiKrispin commented 2 weeks ago

I believe that this error is related to the mismatch between the Dokcer schema version you are using and the one that was used to create the whkesay image. It seems that this issue was fixed a few days ago.

What is the Docker version you are using?

wernersa commented 2 weeks ago
PS C:\Users\myself>  docker run rancher/cowsay cowsay Hello Python Users! 👋 🐍
Unable to find image 'rancher/cowsay:latest' locally
latest: Pulling from rancher/cowsay
cbdbe7a5bc2a: Pull complete
dd05e66d8cea: Pull complete
34d5e986f175: Pull complete
13eefd6dff68: Pull complete
Digest: sha256:5dab61268bc18daf56febb5a856b618961cd806dbc49a22a636128ca26f0bd94
Status: Downloaded newer image for rancher/cowsay:latest
 ______________________________________
< cowsay Hello Python Users! 👋 🐍 >
 --------------------------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||

Tried using a newer build: rancher/cowsay and there is no error.

I am using Docker Desktop version 4.34.0 (165256) and Docker version 27.2.0, build 3ab4256, both the newest updates.