microsoft / vscode-docker

Docker Extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-docker
Other
1.18k stars 508 forks source link

Images and Containers only show up when Docker Desktop is opened #4322

Closed jpba7 closed 6 days ago

jpba7 commented 2 weeks ago

My containers and images doesn't show when I only open vscode imagem

But after I start Docker Desktop app they start to show normally imagem

Version: 1.29.1 OS: linux OS Release: 5.15.0-112-generic Product: Visual Studio Code Product Version: 1.90.0 Language: pt-br

danegsta commented 2 weeks ago

It sounds like you may be hitting a Docker Desktop bug related to resource saver mode that we’ve seen from a number of Docker Desktop users. Basically the Docker daemon can get stuck in resource saver mode and none of the CLI commands work to wake it up, only opening the Docker Desktop UI actually resumes the daemon.

The main trigger for the issue seems to be that a computer sleeping or enters power saver mode while Docker Desktop is in resource saver mode. For now, the only workarounds we’ve identified are to open Docker Desktop every time you resume your computer from sleep, or to disable Docker resource saver mode.

jpba7 commented 1 week ago

I've disabled resource saver mode and didn't fixed it. But it's not that bad to open docker desktop to use it. Anyway, thanks for the help @danegsta !

flash-me commented 1 week ago

@jpba7 are you able to use the docker CLI when you don't start Docker Desktop? (e.g. docker system info)

jpba7 commented 6 days ago

@flash-me It runs but i guess there's something wrong about my docker daemon. Look at the end of the logs: imagem

But after i open docker desktop: imagem

flash-me commented 6 days ago

@flash-me It runs but i guess there's something wrong about my docker daemon. Look at the end of the logs: imagem

But after i open docker desktop: imagem

@jpba7

Nothing wrong with it, but exactly what I assumed 😁

You configured your Docker Desktop to not autostart. And with this the docker daemon also not starts, until you open Docker Desktop. And if you quit Docker Desktop instead of closing/minimizing it (so docker icon is not in the menubar at the top), then the docker daemon also quits.

You may close the UI, but don't quit it, then your issues are solved.

jpba7 commented 6 days ago

Docker Desktop was setup to not autostart. I changed the settings so it starts minimized and everything's running fine as I start my PC and I don't need to open it manually. Thank you, @flash-me

danegsta commented 6 days ago

@flash-me thanks for the help in troubleshooting this issue!