Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant see a list of my containers and images #4359

Closed
Tracked by #4394 ...
zohimchandani opened this issue Aug 5, 2024 · 12 comments
Closed
Tracked by #4394 ...

Cant see a list of my containers and images #4359

zohimchandani opened this issue Aug 5, 2024 · 12 comments

Comments

@zohimchandani
Copy link

I ssh into a machine which has docker installed.

Docker works properly as shown below:

zchandani@gorby:~$ docker ps
CONTAINER ID   IMAGE                                                COMMAND                  CREATED          STATUS          PORTS                                       NAMES
a20516b36995   be777eecadcf                                         "bash -l"                48 minutes ago   Up 48 minutes                                               cudaq40_zohim

However the list of images and containers does not show up when I open the docker extension like it used to approximately a month ago.

Screenshot 2024-08-05 at 11 02 28

Any ideas what could be going wrong here? I need to attach vscode to my container so any terminal commands to do that would also help.

Thanks

@bwateratmsft
Copy link
Collaborator

What version of Docker do you have installed? What happens if you run docker container ls instead of docker ps?

@zohimchandani
Copy link
Author

zchandani@gorby:~$ docker container ls
CONTAINER ID   IMAGE                                                COMMAND                  CREATED        STATUS       PORTS                                       NAMES

a20516b36995   be777eecadcf                                         "bash -l"                6 hours ago    Up 6 hours                                               cudaq40_zohim

@zohimchandani
Copy link
Author

zohimchandani commented Aug 5, 2024

The output of docker container ls and docker ps is both the same. It prints out all the active containers.

I usually look at the active containers on the panel on the left and attach vscode to them but that seems to have broken.

zchandani@gorby:~$ docker --version
Docker version 24.0.7, build afdd53b

@bwateratmsft
Copy link
Collaborator

The full command that we run is as follows, can you try it?

docker container ls --all --no-trunc --format "{{json .}}" --size=false

@zohimchandani
Copy link
Author

zchandani@gorby:~$ docker container ls --all --no-trunc --format "{{json .}}" --size=false
"docker container ls" accepts no arguments.
See 'docker container ls --help'.

Usage:  docker container ls [OPTIONS]

List containers

@bwateratmsft
Copy link
Collaborator

@danegsta any ideas? Maybe an old Docker version?

@zohimchandani
Copy link
Author

I updated vscode to version 1.92.0 which I believe is the latest.

The error I am getting now is:

Error running command vscode-docker.containers.refresh: command 'vscode-docker.containers.refresh' not found. This is likely caused by the extension that contributes vscode-docker.containers.refresh.

Screenshot 2024-08-06 at 10 53 51

@zohimchandani
Copy link
Author

I have access to 2 machines which I ssh into. Both have the same version of docker:

zchandani@gorby:~$ docker --version
Docker version 24.0.7, build afdd53b

One works fine but the other one does not. How can we figure out what the difference between the 2 is?

Moreover, can you tell me if a command line command exists to attach vscode to a running container please?

Thanks.

@bwateratmsft
Copy link
Collaborator

For this new error I have a couple questions:

Error running command vscode-docker.containers.refresh: command 'vscode-docker.containers.refresh' not found. This is likely caused by the extension that contributes vscode-docker.containers.refresh.

  1. What version of the Docker extension do you have installed?
  2. If you go to the Output window and open the Extension Host log, do you see anything suspicious? Errors, warnings, etc. about activating the Docker extension?

@ZethWang
Copy link

I have the same problem,latest version vscode
I installed v1.28.0,v 1.29.1 Docker extension. Both didn't work
and the Extension log didn't show info. about Docker

@zohimchandani
Copy link
Author

For me, apt dist-upgrade seems to have fixed it.

@bwateratmsft
Copy link
Collaborator

Glad to hear it! I'll close this for now then.

@microsoft microsoft locked and limited conversation to collaborators Sep 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants